public class UsernamePasswordAuthenticationRequest extends java.lang.Object implements AuthenticationRequest
AuthenticationRequest
implementation where the user's credentials is a simple password.Constructor and Description |
---|
UsernamePasswordAuthenticationRequest(java.lang.String principal,
java.lang.String credentials,
javax.servlet.http.HttpServletRequest httpServletRequest)
Constructs a new UsernamePasswordAuthenticationRequest with the provided
information.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getCredentials()
Retrieves the password credential provided by the user.
|
javax.servlet.http.HttpServletRequest |
getHttpServletRequest()
The HttpServletRequest that initiated the authentication request.
|
java.lang.String |
getPrincipal()
Retrieves the username provided by the user.
|
int |
hashCode() |
java.lang.String |
toString() |
public UsernamePasswordAuthenticationRequest(java.lang.String principal, java.lang.String credentials, javax.servlet.http.HttpServletRequest httpServletRequest)
principal
- The user resource to authentication against.credentials
- The password credential provided by the user.httpServletRequest
- The httpServletRequest that initiated the
authentication request.public java.lang.String getCredentials()
getCredentials
in interface AuthenticationRequest
public java.lang.String getPrincipal()
getPrincipal
in interface AuthenticationRequest
public javax.servlet.http.HttpServletRequest getHttpServletRequest()
getHttpServletRequest
in interface AuthenticationRequest
null
if not available.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object