@Transient public class BearerTokenAuthentication extends AbstractOAuth2TokenAuthenticationToken<OAuth2AccessToken>
Authentication
token that represents a successful authentication as
obtained through a bearer token.Constructor and Description |
---|
BearerTokenAuthentication(OAuth2AuthenticatedPrincipal principal,
OAuth2AccessToken credentials,
java.util.Collection<? extends GrantedAuthority> authorities)
Constructs a
BearerTokenAuthentication with the provided arguments |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
getTokenAttributes()
Returns the attributes of the access token.
|
getCredentials, getPrincipal, getToken
equals, eraseCredentials, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setAuthenticated, setDetails, toString
public BearerTokenAuthentication(OAuth2AuthenticatedPrincipal principal, OAuth2AccessToken credentials, java.util.Collection<? extends GrantedAuthority> authorities)
BearerTokenAuthentication
with the provided argumentsprincipal
- The OAuth 2.0 attributescredentials
- The verified tokenauthorities
- The authorities associated with the given tokenpublic java.util.Map<java.lang.String,java.lang.Object> getTokenAttributes()
getTokenAttributes
in class AbstractOAuth2TokenAuthenticationToken<OAuth2AccessToken>
Map
of the attributes in the access token.