Class UserCredentials

    • Constructor Detail

      • UserCredentials

        public UserCredentials()
    • Method Detail

      • getId

        public Long getId()
        Specified by:
        getId in interface de.xima.cmn.dao.interfaces.IEntity<Long>
      • 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, ...
      • 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.
      • setUserProfile

        public void setUserProfile​(UserProfile userProfile)