public class JwtAuthenticationToken
extends org.springframework.security.authentication.AbstractAuthenticationToken
AbstractAuthenticationToken implementation for JWT authentication tokens.| Constructor and Description |
|---|
JwtAuthenticationToken(String username,
String token,
Collection<? extends org.springframework.security.core.GrantedAuthority> grantedAuthorities)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getCredentials() |
Object |
getPrincipal() |
equals, eraseCredentials, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setAuthenticated, setDetails, toStringpublic JwtAuthenticationToken(String username, String token, Collection<? extends org.springframework.security.core.GrantedAuthority> grantedAuthorities)
username - the principal's usernametoken - the JWT token (or credential)grantedAuthorities - the granted authoritiesCopyright © 2022 Apache Software Foundation. All rights reserved.