public class BearerTokenAuthenticationToken
extends org.springframework.security.authentication.AbstractAuthenticationToken
Authentication that contains a
Bearer
Token.
Used by BearerTokenAuthenticationFilter to prepare an authentication attempt
and supported by JwtAuthenticationProvider.| Constructor and Description |
|---|
BearerTokenAuthenticationToken(java.lang.String token)
Create a
BearerTokenAuthenticationToken using the provided parameter(s) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getCredentials() |
java.lang.Object |
getPrincipal() |
java.lang.String |
getToken()
Get the
Bearer
Token
|
equals, eraseCredentials, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setAuthenticated, setDetails, toStringpublic BearerTokenAuthenticationToken(java.lang.String token)
BearerTokenAuthenticationToken using the provided parameter(s)token - - the bearer tokenpublic java.lang.String getToken()
HttpServletRequestpublic java.lang.Object getCredentials()
public java.lang.Object getPrincipal()