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 AuthenticationData
public boolean isAuthDataType(AuthenticationData.AuthDataType type)
isAuthDataType
in interface AuthenticationData
public static void initManagerBeans(org.springframework.context.ApplicationContext ac)
public void setRequestorCredentials(RequestorCredentials rCreds)
setRequestorCredentials
in interface AuthenticationData
public RequestorCredentials getRequestorCredentials()
getRequestorCredentials
in interface AuthenticationData
public void setPrincipalName(java.lang.String name)
setPrincipalName
in interface AuthenticationData
public java.lang.String getPrincipalName()
getPrincipalName
in interface AuthenticationData
public java.util.Set<? extends GrantedAuthority> getAuthorities()
AuthenticationData
getAuthorities
in interface AuthenticationData
public User getPrincipal()
AuthenticationData
getPrincipal
in interface AuthenticationData
public boolean isAuthenticated()
AuthenticationData
isAuthenticated
in interface AuthenticationData
public void setAuthorities(java.util.Set<GrantedAuthority> authorities)
setAuthorities
in interface AuthenticationData
public void setAuthenticated(boolean authenticated)
setAuthenticated
in interface AuthenticationData
public AuthenticationException getAuthenticationError()
getAuthenticationError
in interface AuthenticationData
public void setAuthenticationError(AuthenticationException authenticationError)
setAuthenticationError
in interface AuthenticationData
authenticationError
- the authenticationError to setpublic void setPrincipal(java.security.Principal principal)
setPrincipal
in interface AuthenticationData
public java.lang.String toString()
toString
in class java.lang.Object