Package de.xima.fc.entities
Class UserCredentials
java.lang.Object
de.xima.cmn.dao.model.AEntity<Long>
de.xima.fc.entities.AbstractEntity
de.xima.fc.entities.AbstractLockableEntity
de.xima.fc.entities.UserCredentials
- All Implemented Interfaces:
de.xima.cmn.dao.interfaces.IEntity<Long>
,de.xima.cmn.dao.interfaces.ILockableEntity<Long>
,ILockingVersionProviding
,ITransferable
,ITransferableEntity
,ITransferableLockableEntity
,IUserIdentity
,IUUIDEntity
,Serializable
,Comparable<de.xima.cmn.dao.interfaces.IEntity<Long>>
User credentials are the entries of the default formcycle authenticator. They store information about credentials
that users may use to sign in using the formcycle authenticator.
- Since:
- 8.0.0
- Author:
- XIMA Media GmbH
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
Fields inherited from class de.xima.fc.entities.AbstractLockableEntity
COL_LOCKINGVERSION, lockingVersion
Fields inherited from class de.xima.fc.entities.AbstractEntity
COL_ID, id
Fields inherited from interface de.xima.cmn.dao.interfaces.IEntity
ATTR_ID
Fields inherited from interface de.xima.cmn.dao.interfaces.ILockableEntity
ATTR_LOCKINGVERSION
Fields inherited from interface de.xima.fc.entities.interfaces.ITransferableEntity
IMPORT_ID, INVALID_ID
Fields inherited from interface de.xima.fc.entities.interfaces.IUUIDEntity
ATTR_UUID, COL_UUID, INVALID_UUID, INVALID_UUID_OBJECT, NULL_SAFE_UUID_TYPE, TYPE_NAME_UUID
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
checkPassword
(String pasword) getId()
getUUID()
boolean
isExpired
(int expireIntervalDays) Return whether or not the credentials are expired given the time interval of how long the credentials are valid until they expire (in days).void
!!!void
setPassword
(String password) void
setPasswordHash
(String passwordHash) void
setPasswordSetInstant
(Instant passwordSetInstant) void
setUserProfile
(UserProfile userProfile) void
void
setUUIDObject
(UUID uuid) Methods inherited from class de.xima.fc.entities.AbstractLockableEntity
entityHasChanged, getLockingVersion, setLockingVersion, toString
Methods inherited from class de.xima.fc.entities.AbstractEntity
asIntValue, isPersisted, setId
Methods inherited from class de.xima.cmn.dao.model.AEntity
compareTo, equals, getDBTableName, hashCode
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface de.xima.cmn.dao.interfaces.IEntity
isPersisted
-
Field Details
-
COL_PASSWORD_HASH
- See Also:
-
COL_PASSWORD_SET_TIMESTAMP
- See Also:
-
COL_USER_PROFILE_ID
- See Also:
-
ATTR_USER_NAME
- See Also:
-
ATTR_PASSWORD_HASH
- See Also:
-
ATTR_PASSWORD_SET_INSTANT
- See Also:
-
ATTR_USER_PROFILE
- See Also:
-
-
Constructor Details
-
UserCredentials
public UserCredentials()
-
-
Method Details
-
getId
- Specified by:
getId
in interfacede.xima.cmn.dao.interfaces.IEntity<Long>
-
setId
Description copied from class:AbstractEntity
!!!WARNING: Currently values biggerInteger.MAX_VALUE
or lower thenInteger.MIN_VALUE
will be altered to null!!!- Specified by:
setId
in interfacede.xima.cmn.dao.interfaces.IEntity<Long>
- Overrides:
setId
in classAbstractEntity
- Parameters:
id
-Long
the database-id to set
-
getUUID
- Specified by:
getUUID
in interfaceIUUIDEntity
- Returns:
- UUID (Universal Unique Identifier) that identifies this type of entity. Usually is unique within a
context, e.g.
Mandant
,Projekt
, ...
-
setUUID
- Specified by:
setUUID
in interfaceIUUIDEntity
-
getUUIDObject
- Specified by:
getUUIDObject
in interfaceIUUIDEntity
-
setUUIDObject
-
getIdentifier
- Specified by:
getIdentifier
in interfaceIUserIdentity
- Returns:
- a string that uniquely identifies a user within the
client
of this user identity.
-
setPassword
-
getPasswordHash
-
setPasswordHash
-
checkPassword
-
getPasswordSetInstant
-
setPasswordSetInstant
-
isExpired
public boolean isExpired(int expireIntervalDays) Return whether or not the credentials are expired given the time interval of how long the credentials are valid until they expire (in days).- Parameters:
expireIntervalDays
- time interval of how long the credentials are valid until they expire (in days).- Returns:
true
if the credentials are expired given the time interval of how long the credentials are valid until they expire (in days) andfalse
otherwise.
-
getUserProfile
- Specified by:
getUserProfile
in interfaceIUserIdentity
- Returns:
- the user profile this identity is connected to.
-
setUserProfile
-
getClientDescriptor
- Specified by:
getClientDescriptor
in interfaceIUserIdentity
- Returns:
- the client descriptor that is used for signing in.
-