Class OpenIDAuthenticationToken
java.lang.Object
org.springframework.security.authentication.AbstractAuthenticationToken
org.springframework.security.openid.OpenIDAuthenticationToken
- All Implemented Interfaces:
Serializable
,Principal
,Authentication
,CredentialsContainer
Deprecated.
OpenID Authentication Token
- See Also:
-
Constructor Summary
ConstructorDescriptionOpenIDAuthenticationToken
(Object principal, Collection<? extends GrantedAuthority> authorities, String identityUrl, List<OpenIDAttribute> attributes) Deprecated.Created by the OpenIDAuthenticationProvider on successful authentication.OpenIDAuthenticationToken
(OpenIDAuthenticationStatus status, String identityUrl, String message, List<OpenIDAttribute> attributes) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Deprecated.Returns 'null' always, as no credentials are processed by the OpenID provider.Deprecated.Deprecated.Deprecated.Returns the principal value.Deprecated.toString()
Deprecated.Methods inherited from class org.springframework.security.authentication.AbstractAuthenticationToken
equals, eraseCredentials, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setAuthenticated, setDetails
-
Constructor Details
-
OpenIDAuthenticationToken
public OpenIDAuthenticationToken(OpenIDAuthenticationStatus status, String identityUrl, String message, List<OpenIDAttribute> attributes) Deprecated. -
OpenIDAuthenticationToken
public OpenIDAuthenticationToken(Object principal, Collection<? extends GrantedAuthority> authorities, String identityUrl, List<OpenIDAttribute> attributes) Deprecated.Created by the OpenIDAuthenticationProvider on successful authentication.- Parameters:
principal
- usually the UserDetails returned by the configured UserDetailsService used by the OpenIDAuthenticationProvider.
-
-
Method Details
-
getCredentials
Deprecated.Returns 'null' always, as no credentials are processed by the OpenID provider.- Returns:
- the credentials that prove the identity of the
Principal
- See Also:
-
getIdentityUrl
Deprecated. -
getMessage
Deprecated. -
getPrincipal
Deprecated.Returns the principal value.- Returns:
- the
Principal
being authenticated or the authenticated principal after authentication. - See Also:
-
getStatus
Deprecated. -
getAttributes
Deprecated. -
toString
Deprecated.- Specified by:
toString
in interfacePrincipal
- Overrides:
toString
in classAbstractAuthenticationToken
-
spring-security-oauth2
.