Class UserCredentials

java.lang.Object
de.xima.cmn.dao.model.AEntity<Long>
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>>

@Entity public class UserCredentials extends AbstractLockableEntity implements IUserIdentity
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 Details

  • Constructor Details

    • UserCredentials

      public UserCredentials()
  • Method Details

    • getId

      public Long getId()
      Specified by:
      getId in interface de.xima.cmn.dao.interfaces.IEntity<Long>
    • setId

      public void setId(Long id)
      Description copied from class: AbstractEntity
      !!!WARNING: Currently values bigger Integer.MAX_VALUE or lower then Integer.MIN_VALUE will be altered to null!!!
      Specified by:
      setId in interface de.xima.cmn.dao.interfaces.IEntity<Long>
      Overrides:
      setId in class AbstractEntity
      Parameters:
      id - Long the database-id to set
    • getUUID

      public String getUUID()
      Specified by:
      getUUID in interface IUUIDEntity
      Returns:
      UUID (Universal Unique Identifier) that identifies this type of entity. Usually is unique within a context, e.g. Mandant, Projekt, ...
    • setUUID

      public void setUUID(String uuid)
      Specified by:
      setUUID in interface IUUIDEntity
    • getUUIDObject

      public UUID getUUIDObject()
      Specified by:
      getUUIDObject in interface IUUIDEntity
    • setUUIDObject

      public void setUUIDObject(UUID uuid)
    • getIdentifier

      public String getIdentifier()
      Specified by:
      getIdentifier in interface IUserIdentity
      Returns:
      a string that uniquely identifies a user within the client of this user identity.
    • setPassword

      public void setPassword(String password)
    • getPasswordHash

      public String getPasswordHash()
    • setPasswordHash

      public void setPasswordHash(String passwordHash)
    • checkPassword

      public boolean checkPassword(String pasword)
    • getPasswordSetInstant

      public Instant getPasswordSetInstant()
    • setPasswordSetInstant

      public void setPasswordSetInstant(Instant passwordSetInstant)
    • 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) and false otherwise.
    • getUserProfile

      public UserProfile getUserProfile()
      Specified by:
      getUserProfile in interface IUserIdentity
      Returns:
      the user profile this identity is connected to.
    • setUserProfile

      public void setUserProfile(UserProfile userProfile)
    • getClientDescriptor

      public IClientDescriptor getClientDescriptor()
      Specified by:
      getClientDescriptor in interface IUserIdentity
      Returns:
      the client descriptor that is used for signing in.