public class OAuth2IntrospectionAuthenticationToken extends AbstractOAuth2TokenAuthenticationToken<OAuth2AccessToken>
Authentication
token that represents a successful authentication as
obtained through an opaque token
introspection
process.Constructor and Description |
---|
OAuth2IntrospectionAuthenticationToken(OAuth2AccessToken token,
java.util.Map<java.lang.String,java.lang.Object> attributes,
java.util.Collection<? extends GrantedAuthority> authorities)
Constructs a
OAuth2IntrospectionAuthenticationToken with the provided arguments |
OAuth2IntrospectionAuthenticationToken(OAuth2AccessToken token,
java.util.Map<java.lang.String,java.lang.Object> attributes,
java.util.Collection<? extends GrantedAuthority> authorities,
java.lang.String name)
Constructs a
OAuth2IntrospectionAuthenticationToken with the provided arguments |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName() |
java.util.Map<java.lang.String,java.lang.Object> |
getTokenAttributes()
Returns the attributes of the access token.
|
getCredentials, getPrincipal, getToken
equals, eraseCredentials, getAuthorities, getDetails, hashCode, isAuthenticated, setAuthenticated, setDetails, toString
public OAuth2IntrospectionAuthenticationToken(OAuth2AccessToken token, java.util.Map<java.lang.String,java.lang.Object> attributes, java.util.Collection<? extends GrantedAuthority> authorities)
OAuth2IntrospectionAuthenticationToken
with the provided argumentstoken
- The verified tokenauthorities
- The authorities associated with the given tokenpublic OAuth2IntrospectionAuthenticationToken(OAuth2AccessToken token, java.util.Map<java.lang.String,java.lang.Object> attributes, java.util.Collection<? extends GrantedAuthority> authorities, java.lang.String name)
OAuth2IntrospectionAuthenticationToken
with the provided argumentstoken
- The verified tokenauthorities
- The authorities associated with the given tokenname
- The name associated with this tokenpublic java.util.Map<java.lang.String,java.lang.Object> getTokenAttributes()
getTokenAttributes
in class AbstractOAuth2TokenAuthenticationToken<OAuth2AccessToken>
Map
of the attributes in the access token.public java.lang.String getName()
getName
in interface java.security.Principal
getName
in class AbstractAuthenticationToken