Interface Subject

    • Method Detail

      • isAuthenticated

        boolean isAuthenticated()
        Checks whether this Subject is authenticated.
        Returns:
        true if this Subject is authenticated, false otherwise
      • isLocked

        default boolean isLocked()
        Whether or not the subject is locked.
        Returns:
        true if the subject is locked.
        Since:
        1.21
      • getExpiryDate

        default Date getExpiryDate()
        The date on which the subject expires.
        Returns:
        the date, if any (may be null)
        Since:
        1.21
      • getLastLogin

        default Date getLastLogin()
        Returns the date of the last login, if any.
        Returns:
        the date.
        Since:
        1.21
      • getPasswordLastChanged

        default Date getPasswordLastChanged()
        Returns the date when the password was last changed. Default to the creation date of the subject.
        Returns:
        the date.
        Since:
        1.21
      • getFailedLoginAttempts

        default Integer getFailedLoginAttempts()
        Returns the number of failed login attempts for this subject.
        Returns:
        the number of failed login attempts
        Since:
        1.21