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