Class UsernamePasswordAuthentication
- java.lang.Object
-
- io.streamthoughts.azkarra.http.security.auth.AbstractAuthentication<PasswordCredentials>
-
- io.streamthoughts.azkarra.http.security.auth.UsernamePasswordAuthentication
-
- All Implemented Interfaces:
Authentication
- Direct Known Subclasses:
JAASAuthentication
public class UsernamePasswordAuthentication extends AbstractAuthentication<PasswordCredentials>
-
-
Constructor Summary
Constructors Constructor Description UsernamePasswordAuthentication(Principal principal, PasswordCredentials credential)
Creates a newUsernamePasswordAuthentication
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UserDetails
getUserDetails()
Gets details about the authenticated user.void
setUserDetails(UserDetails userDetails)
-
Methods inherited from class io.streamthoughts.azkarra.http.security.auth.AbstractAuthentication
getCredentials, getPrincipal, isAuthenticated, setAuthenticated
-
-
-
-
Constructor Detail
-
UsernamePasswordAuthentication
public UsernamePasswordAuthentication(Principal principal, PasswordCredentials credential)
Creates a newUsernamePasswordAuthentication
instance.- Parameters:
principal
- thePrincipal
of the user to authenticate.credential
- thePasswordCredentials
of the user to authenticate.
-
-
Method Detail
-
getUserDetails
public UserDetails getUserDetails()
Gets details about the authenticated user.- Returns:
- the
UserDetails
if user is authenticated,null
otherwise.
-
setUserDetails
public void setUserDetails(UserDetails userDetails)
-
-