@Transient public class JwtAuthenticationToken extends AbstractOAuth2TokenAuthenticationToken<Jwt>
AbstractOAuth2TokenAuthenticationToken,
Jwt,
Serialized Form| Constructor and Description |
|---|
JwtAuthenticationToken(Jwt jwt)
Constructs a
JwtAuthenticationToken using the provided parameters. |
JwtAuthenticationToken(Jwt jwt,
java.util.Collection<? extends GrantedAuthority> authorities)
Constructs a
JwtAuthenticationToken using the provided parameters. |
JwtAuthenticationToken(Jwt jwt,
java.util.Collection<? extends GrantedAuthority> authorities,
java.lang.String name)
Constructs a
JwtAuthenticationToken using the provided parameters. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName()
The principal name which is, by default, the
Jwt's subject |
java.util.Map<java.lang.String,java.lang.Object> |
getTokenAttributes()
Returns the attributes of the access token.
|
getCredentials, getPrincipal, getTokenequals, eraseCredentials, getAuthorities, getDetails, hashCode, isAuthenticated, setAuthenticated, setDetails, toStringpublic JwtAuthenticationToken(Jwt jwt)
JwtAuthenticationToken using the provided parameters.jwt - the JWTpublic JwtAuthenticationToken(Jwt jwt, java.util.Collection<? extends GrantedAuthority> authorities)
JwtAuthenticationToken using the provided parameters.jwt - the JWTauthorities - the authorities assigned to the JWTpublic JwtAuthenticationToken(Jwt jwt, java.util.Collection<? extends GrantedAuthority> authorities, java.lang.String name)
JwtAuthenticationToken using the provided parameters.jwt - the JWTauthorities - the authorities assigned to the JWTname - the principal namepublic java.util.Map<java.lang.String,java.lang.Object> getTokenAttributes()
getTokenAttributes in class AbstractOAuth2TokenAuthenticationToken<Jwt>Map of the attributes in the access token.public java.lang.String getName()
Jwt's subjectgetName in interface java.security.PrincipalgetName in class AbstractAuthenticationToken