public abstract class BaseAuthenticationData extends java.lang.Object implements AuthenticationData
AuthenticationData.AuthDataType| Modifier and Type | Field and Description |
|---|---|
protected static org.springframework.context.ApplicationContext |
ac |
static AccessTokenManager |
accessTokenMgr |
static PartnerDao |
partnerDao |
static RolesManager |
rolesMgr |
static UserManager |
userMgr |
| Constructor and Description |
|---|
BaseAuthenticationData(AuthenticationData.AuthDataType type) |
| 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() |
static void |
initManagerBeans(org.springframework.context.ApplicationContext ac) |
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) |
java.lang.String |
toString() |
protected static org.springframework.context.ApplicationContext ac
public static AccessTokenManager accessTokenMgr
public static UserManager userMgr
public static RolesManager rolesMgr
public static PartnerDao partnerDao
public BaseAuthenticationData(AuthenticationData.AuthDataType type)
public AuthenticationData.AuthDataType getAuthDataType()
getAuthDataType in interface AuthenticationDatapublic boolean isAuthDataType(AuthenticationData.AuthDataType type)
isAuthDataType in interface AuthenticationDatapublic static void initManagerBeans(org.springframework.context.ApplicationContext ac)
public void setRequestorCredentials(RequestorCredentials rCreds)
setRequestorCredentials in interface AuthenticationDatapublic RequestorCredentials getRequestorCredentials()
getRequestorCredentials in interface AuthenticationDatapublic void setPrincipalName(java.lang.String name)
setPrincipalName in interface AuthenticationDatapublic java.lang.String getPrincipalName()
getPrincipalName in interface AuthenticationDatapublic java.util.Set<? extends GrantedAuthority> getAuthorities()
AuthenticationDatagetAuthorities in interface AuthenticationDatapublic User getPrincipal()
AuthenticationDatagetPrincipal in interface AuthenticationDatapublic boolean isAuthenticated()
AuthenticationDataisAuthenticated in interface AuthenticationDatapublic void setAuthorities(java.util.Set<GrantedAuthority> authorities)
setAuthorities in interface AuthenticationDatapublic void setAuthenticated(boolean authenticated)
setAuthenticated in interface AuthenticationDatapublic AuthenticationException getAuthenticationError()
getAuthenticationError in interface AuthenticationDatapublic void setAuthenticationError(AuthenticationException authenticationError)
setAuthenticationError in interface AuthenticationDataauthenticationError - the authenticationError to setpublic void setPrincipal(java.security.Principal principal)
setPrincipal in interface AuthenticationDatapublic java.lang.String toString()
toString in class java.lang.Object