Interface UserState
-
public interface UserState
Represents the state of a user after authentication.- Since:
- 1.0
- Author:
- Sergio del Amo
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getPassword()
java.lang.String
getUsername()
boolean
isAccountExpired()
boolean
isAccountLocked()
boolean
isEnabled()
boolean
isPasswordExpired()
-
-
-
Method Detail
-
getUsername
java.lang.String getUsername()
- Returns:
- The username
-
getPassword
java.lang.String getPassword()
- Returns:
- The encrypted password
-
isEnabled
boolean isEnabled()
- Returns:
- true if the user account is enabled
-
isAccountExpired
boolean isAccountExpired()
- Returns:
- true if the user account is expired
-
isAccountLocked
boolean isAccountLocked()
- Returns:
- true if the user account is locked
-
isPasswordExpired
boolean isPasswordExpired()
- Returns:
- true if the user has an expired password
-
-