public interface AuthenticationData
Modifier and Type | Interface and Description |
---|---|
static class |
AuthenticationData.AuthDataType |
Modifier and Type | Method and Description |
---|---|
AuthenticationData.AuthDataType |
getAuthDataType() |
AuthenticationException |
getAuthenticationError() |
java.util.Set<? extends GrantedAuthority> |
getAuthorities()
Access the set of authorities (roles) for this Authentication.
|
User |
getPrincipal()
Access the identity (username) for this Authentication.
|
java.lang.String |
getPrincipalName() |
RequestorCredentials |
getRequestorCredentials() |
boolean |
isAuthDataType(AuthenticationData.AuthDataType type) |
boolean |
isAuthenticated()
Indicate whether this Authentication has been verified by the AuthenticationManager yet.
|
void |
setAuthenticated(boolean authenticated) |
void |
setAuthenticationError(AuthenticationException authenticationError) |
void |
setAuthorities(java.util.Set<GrantedAuthority> authorities) |
void |
setPrincipal(java.security.Principal principal) |
void |
setPrincipalName(java.lang.String name) |
void |
setRequestorCredentials(RequestorCredentials rCreds) |
AuthenticationData.AuthDataType getAuthDataType()
boolean isAuthDataType(AuthenticationData.AuthDataType type)
void setRequestorCredentials(RequestorCredentials rCreds)
RequestorCredentials getRequestorCredentials()
java.util.Set<? extends GrantedAuthority> getAuthorities()
void setAuthorities(java.util.Set<GrantedAuthority> authorities)
User getPrincipal()
void setPrincipal(java.security.Principal principal)
void setPrincipalName(java.lang.String name)
java.lang.String getPrincipalName()
boolean isAuthenticated()
void setAuthenticated(boolean authenticated)
AuthenticationException getAuthenticationError()
void setAuthenticationError(AuthenticationException authenticationError)