@Transient public class JwtAuthenticationToken extends AbstractOAuth2TokenAuthenticationToken<org.springframework.security.oauth2.jwt.Jwt>
AbstractOAuth2TokenAuthenticationToken,
Jwt,
Serialized Form| Constructor and Description |
|---|
JwtAuthenticationToken(org.springframework.security.oauth2.jwt.Jwt jwt)
Constructs a
JwtAuthenticationToken using the provided parameters. |
JwtAuthenticationToken(org.springframework.security.oauth2.jwt.Jwt jwt,
java.util.Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
Constructs a
JwtAuthenticationToken using the provided parameters. |
JwtAuthenticationToken(org.springframework.security.oauth2.jwt.Jwt jwt,
java.util.Collection<? extends org.springframework.security.core.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(org.springframework.security.oauth2.jwt.Jwt jwt)
JwtAuthenticationToken using the provided parameters.jwt - the JWTpublic JwtAuthenticationToken(org.springframework.security.oauth2.jwt.Jwt jwt,
java.util.Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
JwtAuthenticationToken using the provided parameters.jwt - the JWTauthorities - the authorities assigned to the JWTpublic JwtAuthenticationToken(org.springframework.security.oauth2.jwt.Jwt jwt,
java.util.Collection<? extends org.springframework.security.core.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()
AbstractOAuth2TokenAuthenticationTokengetTokenAttributes in class AbstractOAuth2TokenAuthenticationToken<org.springframework.security.oauth2.jwt.Jwt>Map of the attributes in the access token.public java.lang.String getName()
Jwt's subjectgetName in interface java.security.PrincipalgetName in class org.springframework.security.authentication.AbstractAuthenticationToken