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()
        Description copied from interface: IUUIDEntity
        Gets 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 example client scopes or project scope.
        Specified by:
        getUUID in interface IUUIDEntity
        Returns:
        The UUID of the entity.
      • setUUID

        public void setUUID​(String uuid)
        Description copied from interface: IUUIDEntity
        Sets 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 example client scopes or project scope.
        Specified by:
        setUUID in interface IUUIDEntity
        Parameters:
        uuid - The UUID of the entity.
      • getUUIDObject

        public UUID getUUIDObject()
        Description copied from interface: IUUIDEntity
        Gets 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 example client scopes or project scope.
        Specified by:
        getUUIDObject in interface IUUIDEntity
        Returns:
        The UUID of the entity.
      • 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)