Class UsernamePasswordCredentials
java.lang.Object
io.micronaut.security.authentication.UsernamePasswordCredentials
- All Implemented Interfaces:
AuthenticationRequest<String,
,String> Serializable
public class UsernamePasswordCredentials
extends Object
implements Serializable, AuthenticationRequest<String,String>
- Since:
- 1.0
- Author:
- Sergio del Amo
- See Also:
-
Constructor Summary
ConstructorDescriptionDefault constructor.UsernamePasswordCredentials
(@Nullable String username, @Nullable String password) -
Method Summary
Modifier and TypeMethodDescriptionboolean
@Nullable String
@Nullable String
password getter.@Nullable String
Returns password conforming toAuthenticationRequest
blueprint.@Nullable String
username getter.int
hashCode()
void
setPassword
(@Nullable String password) password setter.void
setUsername
(@Nullable String username) username setter.
-
Constructor Details
-
Method Details
-
getUsername
username getter.- Returns:
- e.g. admin
-
setUsername
username setter.- Parameters:
username
- e.g. admin
-
getPassword
password getter.- Returns:
- raw password
-
setPassword
password setter.- Parameters:
password
- raw password
-
getIdentity
- Specified by:
getIdentity
in interfaceAuthenticationRequest<String,
String> - Returns:
- The token in the request
-
getSecret
Returns password conforming toAuthenticationRequest
blueprint.- Specified by:
getSecret
in interfaceAuthenticationRequest<String,
String> - Returns:
- secret string.
-
equals
-
hashCode
public int hashCode()
-