Module io.inverno.mod.security
Interface LoginCredentials
- All Superinterfaces:
Credentials
,PrincipalCredentials
- All Known Implementing Classes:
User
Login credentials composed of a username and a password.
- Since:
- 1.5
- Author:
- Jeremy Kuhn
-
Method Summary
Modifier and TypeMethodDescriptionPassword
<?, ?> Returns the password.static LoginCredentials
Creates a login credentials with the specified username and password.Methods inherited from interface io.inverno.mod.security.authentication.Credentials
isLocked
Methods inherited from interface io.inverno.mod.security.authentication.PrincipalCredentials
getUsername
-
Method Details
-
of
static LoginCredentials of(String username, Password<?, ?> password) throws InvalidCredentialsExceptionCreates a login credentials with the specified username and password.
- Parameters:
username
- a usernamepassword
- a password- Returns:
- a new login credentials
- Throws:
InvalidCredentialsException
- if the combination of user and password is invalid
-
getPassword
Password<?,?> getPassword()Returns the password.
- Returns:
- a password
-