public interface Subject extends Named<Integer>, AuthSubject
Subject
is a fully featured user-account managed by appNG.AuthSubject.PasswordChangePolicy
Modifier and Type | Method and Description |
---|---|
default Date |
getExpiryDate()
The date on which the subject expires.
|
default Integer |
getFailedLoginAttempts()
Returns the number of failed login attempts for this subject.
|
List<Group> |
getGroups()
|
default Date |
getLastLogin()
Returns the date of the last login, if any.
|
default Date |
getPasswordLastChanged()
Returns the date when the password was last changed.
|
UserType |
getUserType()
Returns the
UserType . |
boolean |
hasApplication(Application application)
|
boolean |
isAuthenticated()
Checks whether this
Subject is authenticated. |
boolean |
isAuthorized(Authorizable<?> authorizable)
Checks whether this
Subject has authorization for the given Authorizable . |
default boolean |
isLocked()
Whether or not the subject is locked.
|
getDescription, getName
getId
getDigest, getPasswordChangePolicy, getSalt, setDigest, setPasswordChangePolicy, setPasswordLastChanged, setSalt
getAuthName, getEmail, getLanguage, getRealname, getTimeZone
boolean isAuthenticated()
Subject
is authenticated.true
if this Subject
is authenticated, false
otherwiseboolean isAuthorized(Authorizable<?> authorizable)
Subject
has authorization for the given Authorizable
.authorizable
- the Authorizable
true
if this Subject
has authorization for the given Authorizable
,
false
otherwiseboolean hasApplication(Application application)
application
- the Application
true
if this Subject
owns at least one Role
of the the given
Application
, false
otherwisedefault boolean isLocked()
true
if the subject is locked.default Date getExpiryDate()
null
)default Date getLastLogin()
default Date getPasswordLastChanged()
default Integer getFailedLoginAttempts()
Copyright © 2011–2020 aiticon GmbH. All rights reserved.