Class WAMultifactorAuthenticationTrustStorage
- java.lang.Object
-
- org.apereo.cas.trusted.authentication.storage.BaseMultifactorAuthenticationTrustStorage
-
- org.apache.syncope.wa.starter.mfa.WAMultifactorAuthenticationTrustStorage
-
- All Implemented Interfaces:
org.apereo.cas.trusted.authentication.api.MultifactorAuthenticationTrustStorage
public class WAMultifactorAuthenticationTrustStorage extends org.apereo.cas.trusted.authentication.storage.BaseMultifactorAuthenticationTrustStorage
-
-
Field Summary
Fields Modifier and Type Field Description protected static int
PAGE_SIZE
protected WARestClient
waRestClient
-
Constructor Summary
Constructors Constructor Description WAMultifactorAuthenticationTrustStorage(org.apereo.cas.configuration.model.support.mfa.trusteddevice.TrustedDevicesMultifactorProperties trustedDevicesMultifactorProperties, org.apereo.cas.util.crypto.CipherExecutor<Serializable,String> cipherExecutor, org.apereo.cas.trusted.authentication.api.MultifactorAuthenticationTrustRecordKeyGenerator keyGenerationStrategy, WARestClient waRestClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apereo.cas.trusted.authentication.api.MultifactorAuthenticationTrustRecord
get(long id)
Set<? extends org.apereo.cas.trusted.authentication.api.MultifactorAuthenticationTrustRecord>
get(String principal)
Set<? extends org.apereo.cas.trusted.authentication.api.MultifactorAuthenticationTrustRecord>
get(ZonedDateTime onOrAfterDate)
Set<? extends org.apereo.cas.trusted.authentication.api.MultifactorAuthenticationTrustRecord>
getAll()
void
remove(String recordKey)
void
remove(ZonedDateTime expirationDate)
protected org.apereo.cas.trusted.authentication.api.MultifactorAuthenticationTrustRecord
saveInternal(org.apereo.cas.trusted.authentication.api.MultifactorAuthenticationTrustRecord record)
protected org.apereo.cas.trusted.authentication.api.MultifactorAuthenticationTrustRecord
translate(MfaTrustedDevice device)
-
Methods inherited from class org.apereo.cas.trusted.authentication.storage.BaseMultifactorAuthenticationTrustStorage
generateKey, get, getCipherExecutor, getKeyGenerationStrategy, getTrustedDevicesMultifactorProperties, save, toString
-
-
-
-
Field Detail
-
PAGE_SIZE
protected static final int PAGE_SIZE
- See Also:
- Constant Field Values
-
waRestClient
protected final WARestClient waRestClient
-
-
Constructor Detail
-
WAMultifactorAuthenticationTrustStorage
public WAMultifactorAuthenticationTrustStorage(org.apereo.cas.configuration.model.support.mfa.trusteddevice.TrustedDevicesMultifactorProperties trustedDevicesMultifactorProperties, org.apereo.cas.util.crypto.CipherExecutor<Serializable,String> cipherExecutor, org.apereo.cas.trusted.authentication.api.MultifactorAuthenticationTrustRecordKeyGenerator keyGenerationStrategy, WARestClient waRestClient)
-
-
Method Detail
-
saveInternal
protected org.apereo.cas.trusted.authentication.api.MultifactorAuthenticationTrustRecord saveInternal(org.apereo.cas.trusted.authentication.api.MultifactorAuthenticationTrustRecord record)
- Specified by:
saveInternal
in classorg.apereo.cas.trusted.authentication.storage.BaseMultifactorAuthenticationTrustStorage
-
remove
public void remove(ZonedDateTime expirationDate)
-
remove
public void remove(String recordKey)
-
translate
protected org.apereo.cas.trusted.authentication.api.MultifactorAuthenticationTrustRecord translate(MfaTrustedDevice device)
-
getAll
public Set<? extends org.apereo.cas.trusted.authentication.api.MultifactorAuthenticationTrustRecord> getAll()
-
get
public Set<? extends org.apereo.cas.trusted.authentication.api.MultifactorAuthenticationTrustRecord> get(ZonedDateTime onOrAfterDate)
-
get
public Set<? extends org.apereo.cas.trusted.authentication.api.MultifactorAuthenticationTrustRecord> get(String principal)
-
get
public org.apereo.cas.trusted.authentication.api.MultifactorAuthenticationTrustRecord get(long id)
-
-