spring-security-oauth2
.@Deprecated 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)
Deprecated.
Created by the OpenIDAuthenticationProvider on successful authentication.
|
OpenIDAuthenticationToken(OpenIDAuthenticationStatus status,
java.lang.String identityUrl,
java.lang.String message,
java.util.List<OpenIDAttribute> attributes)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<OpenIDAttribute> |
getAttributes()
Deprecated.
|
java.lang.Object |
getCredentials()
Deprecated.
Returns 'null' always, as no credentials are processed by the OpenID provider.
|
java.lang.String |
getIdentityUrl()
Deprecated.
|
java.lang.String |
getMessage()
Deprecated.
|
java.lang.Object |
getPrincipal()
Deprecated.
Returns the principal value.
|
OpenIDAuthenticationStatus |
getStatus()
Deprecated.
|
java.lang.String |
toString()
Deprecated.
|
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