@Transient public class BearerTokenAuthentication extends AbstractOAuth2TokenAuthenticationToken<org.springframework.security.oauth2.core.OAuth2AccessToken>
Authentication token that represents a
successful authentication as obtained through a bearer token.| Constructor and Description |
|---|
BearerTokenAuthentication(org.springframework.security.oauth2.core.OAuth2AuthenticatedPrincipal principal,
org.springframework.security.oauth2.core.OAuth2AccessToken credentials,
java.util.Collection<? extends org.springframework.security.core.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, getTokenequals, eraseCredentials, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setAuthenticated, setDetails, toStringpublic BearerTokenAuthentication(org.springframework.security.oauth2.core.OAuth2AuthenticatedPrincipal principal,
org.springframework.security.oauth2.core.OAuth2AccessToken credentials,
java.util.Collection<? extends org.springframework.security.core.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()
AbstractOAuth2TokenAuthenticationTokengetTokenAttributes in class AbstractOAuth2TokenAuthenticationToken<org.springframework.security.oauth2.core.OAuth2AccessToken>Map of the attributes in the access token.