Class UserProfileMfa
java.lang.Object
de.xima.cmn.dao.model.AEntity<Long>
de.xima.fc.entities.AbstractEntity
de.xima.fc.entities.AbstractLockableEntity
de.xima.fc.entities.UserProfileMfa
- All Implemented Interfaces:
de.xima.cmn.dao.interfaces.IEntity<Long>, de.xima.cmn.dao.interfaces.ILockableEntity<Long>, ILockingVersionProviding, ITransferable, ITransferableEntity, ITransferableLockableEntity, IUUIDEntity, Serializable, Comparable<de.xima.cmn.dao.interfaces.IEntity<Long>>
This entity represents the MFA configuration of a user profile.
- Since:
- 8.0.0
- Author:
- XIMA Media GmbH
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated.static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringDeprecated.static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class AbstractLockableEntity
COL_LOCKINGVERSION, lockingVersionFields inherited from class AbstractEntity
COL_ID, idFields inherited from interface de.xima.cmn.dao.interfaces.IEntity
ATTR_IDFields inherited from interface de.xima.cmn.dao.interfaces.ILockableEntity
ATTR_LOCKINGVERSIONFields inherited from interface ITransferableEntity
IMPORT_ID, INVALID_IDFields inherited from interface IUUIDEntity
ATTR_UUID, COL_UUID, INVALID_UUID, INVALID_UUID_OBJECT, NULL_SAFE_UUID_TYPE, NULLABLE_UUID_TYPE, TYPE_NAME_UUID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()Deprecated.getType()getUUID()Gets the UUID (universal unique identifier) that uniquely identifies this type of entity.Gets the UUID (universal unique identifier) that uniquely identifies this type of entity.booleanChecks if the MFA configuration is registered and ready for use.booleanbooleanvoid!!!voidsetLastAuthenticatedInstant(Instant lastAuthenticatedInstant) Deprecated.UseUserProfile.setMfaLastAuthenticatedInstant(Instant)instead.voidsetRemoveExpireInstant(Instant removeExpireInstant) voidsetRemoveUuid(UUID removeUuid) voidvoidvoidvoidsetUserProfile(UserProfile userProfile) voidSets the UUID (universal unique identifier) that uniquely identifies this type of entity.voidsetUUIDObject(UUID uuid) voidsetVerificationExpireInstant(Instant verificationExpireInstant) voidsetVerificationState(String verificationState) voidvoidsetVerifiedInstant(Instant verifiedInstant) Methods inherited from class AbstractLockableEntity
entityHasChanged, getLockingVersion, setLockingVersion, toStringMethods inherited from class AbstractEntity
asIntValue, isPersisted, setIdMethods inherited from class de.xima.cmn.dao.model.AEntity
compareTo, equals, getDBTableName, hashCodeMethods inherited from interface Comparable
compareToMethods inherited from interface de.xima.cmn.dao.interfaces.IEntity
isPersisted
-
Field Details
-
COL_USER_PROFILE
- See Also:
-
COL_TYPE
- See Also:
-
COL_SECRET
- See Also:
-
COL_LAST_AUTHENTICATED_TIMESTAMP
-
COL_VERIFICATION_STATE
- See Also:
-
COL_VERIFICATION_EXPIRE_TIMESTAMP
- See Also:
-
COL_VERIFIED_TIMESTAMP
- See Also:
-
COL_REMOVE_UUID
- See Also:
-
COL_REMOVE_EXPIRE_TIMESTAMP
- See Also:
-
ATTR_USER_PROFILE
- See Also:
-
ATTR_TYPE
- See Also:
-
ATTR_SECRET
- See Also:
-
ATTR_LAST_AUTHENTICATED_INSTANT
-
ATTR_VERIFICATION_STATE
- See Also:
-
ATTR_VERIFICATION_EXPIRE_INSTANT
- See Also:
-
ATTR_VERIFIED_INSTANT
- See Also:
-
ATTR_REMOVE_UUID
- See Also:
-
ATTR_REMOVE_EXPIRE_INSTANT
- See Also:
-
VERIFICATION_STATE_VERIFIED
- See Also:
-
-
Constructor Details
-
UserProfileMfa
public UserProfileMfa()
-
-
Method Details
-
getId
-
setId
Description copied from class:AbstractEntity!!!WARNING: Currently values biggerInteger.MAX_VALUEor lower thenInteger.MIN_VALUEwill be altered to null!!!- Specified by:
setIdin interfacede.xima.cmn.dao.interfaces.IEntity<Long>- Overrides:
setIdin classAbstractEntity- Parameters:
id-Longthe database-id to set
-
getUUID
Description copied from interface:IUUIDEntityGets the UUID (universal unique identifier) that uniquely identifies this type of entity. Whether the UUID must be globally unique or only with within a context depends on the type of entity. Common contexts are for exampleclient scopesorproject scope.- Specified by:
getUUIDin interfaceIUUIDEntity- Returns:
- The UUID of the entity.
-
setUUID
Description copied from interface:IUUIDEntitySets the UUID (universal unique identifier) that uniquely identifies this type of entity. Whether the UUID must be globally unique or only with within a context depends on the type of entity. Common contexts are for exampleclient scopesorproject scope.- Specified by:
setUUIDin interfaceIUUIDEntity- Parameters:
uuid- The UUID of the entity.
-
getUUIDObject
Description copied from interface:IUUIDEntityGets the UUID (universal unique identifier) that uniquely identifies this type of entity. Whether the UUID must be globally unique or only with within a context depends on the type of entity. Common contexts are for exampleclient scopesorproject scope.- Specified by:
getUUIDObjectin interfaceIUUIDEntity- Returns:
- The UUID of the entity.
-
setUUIDObject
-
getUserProfile
-
setUserProfile
-
getType
-
setType
-
getSecret
-
setSecret
-
getLastAuthenticatedInstant
Deprecated.UseUserProfile.getMfaLastAuthenticatedInstant()instead.- See Also:
-
setLastAuthenticatedInstant
Deprecated.UseUserProfile.setMfaLastAuthenticatedInstant(Instant)instead.- See Also:
-
getVerificationState
-
setVerificationState
-
getVerificationExpireInstant
-
setVerificationExpireInstant
-
getVerifiedInstant
-
setVerifiedInstant
-
setVerified
public void setVerified() -
setUnverified
public void setUnverified() -
isRegistered
public boolean isRegistered()Checks if the MFA configuration is registered and ready for use. This method returns true if the MFA type is EMAIL or TOTP and the secret is set and verified.- Returns:
- true if the MFA configuration is registered, false otherwise
-
isVerified
public boolean isVerified() -
getRemoveUuid
-
setRemoveUuid
-
getRemoveExpireInstant
-
setRemoveExpireInstant
-
isRemovalRequestPending
public boolean isRemovalRequestPending()
-
UserProfile.getMfaLastAuthenticatedInstant()instead.