public class OpenIDAuthenticationToken extends AbstractAuthenticationToken
Constructor and Description |
---|
OpenIDAuthenticationToken(Object principal,
Collection<? extends GrantedAuthority> authorities,
String identityUrl,
List<OpenIDAttribute> attributes)
Created by the OpenIDAuthenticationProvider on successful authentication.
|
OpenIDAuthenticationToken(OpenIDAuthenticationStatus status,
String identityUrl,
String message,
List<OpenIDAttribute> attributes) |
Modifier and Type | Method and Description |
---|---|
List<OpenIDAttribute> |
getAttributes() |
Object |
getCredentials()
Returns 'null' always, as no credentials are processed by the OpenID provider.
|
String |
getIdentityUrl() |
String |
getMessage() |
Object |
getPrincipal()
Returns the principal value.
|
OpenIDAuthenticationStatus |
getStatus() |
String |
toString() |
equals, eraseCredentials, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setAuthenticated, setDetails
public OpenIDAuthenticationToken(OpenIDAuthenticationStatus status, String identityUrl, String message, List<OpenIDAttribute> attributes)
public OpenIDAuthenticationToken(Object principal, Collection<? extends GrantedAuthority> authorities, String identityUrl, List<OpenIDAttribute> attributes)
principal
- usually the UserDetails returned by the configured
UserDetailsService used by the OpenIDAuthenticationProvider.public Object getCredentials()
Principal
Authentication.getCredentials()
public String getIdentityUrl()
public String getMessage()
public Object getPrincipal()
Principal
being authenticated or the authenticated
principal after authentication.Authentication.getPrincipal()
public OpenIDAuthenticationStatus getStatus()
public List<OpenIDAttribute> getAttributes()
public String toString()
toString
in interface Principal
toString
in class AbstractAuthenticationToken