public class PreAuthenticatedAuthenticationJsonWebToken extends java.lang.Object implements org.springframework.security.core.Authentication, JwtAuthentication
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<? extends org.springframework.security.core.GrantedAuthority> |
getAuthorities() |
java.lang.Object |
getCredentials() |
java.lang.Object |
getDetails() |
java.lang.String |
getKeyId() |
java.lang.String |
getName() |
java.lang.Object |
getPrincipal() |
java.lang.String |
getToken() |
boolean |
isAuthenticated() |
void |
setAuthenticated(boolean isAuthenticated) |
static PreAuthenticatedAuthenticationJsonWebToken |
usingToken(java.lang.String token) |
org.springframework.security.core.Authentication |
verify(com.auth0.jwt.JWTVerifier verifier) |
public java.util.Collection<? extends org.springframework.security.core.GrantedAuthority> getAuthorities()
getAuthorities in interface org.springframework.security.core.Authenticationpublic java.lang.Object getCredentials()
getCredentials in interface org.springframework.security.core.Authenticationpublic java.lang.Object getDetails()
getDetails in interface org.springframework.security.core.Authenticationpublic java.lang.Object getPrincipal()
getPrincipal in interface org.springframework.security.core.Authenticationpublic boolean isAuthenticated()
isAuthenticated in interface org.springframework.security.core.Authenticationpublic void setAuthenticated(boolean isAuthenticated)
throws java.lang.IllegalArgumentException
setAuthenticated in interface org.springframework.security.core.Authenticationjava.lang.IllegalArgumentExceptionpublic java.lang.String getName()
getName in interface java.security.Principalpublic static PreAuthenticatedAuthenticationJsonWebToken usingToken(java.lang.String token)
public java.lang.String getToken()
getToken in interface JwtAuthenticationpublic java.lang.String getKeyId()
getKeyId in interface JwtAuthenticationpublic org.springframework.security.core.Authentication verify(com.auth0.jwt.JWTVerifier verifier)
throws com.auth0.jwt.exceptions.JWTVerificationException
verify in interface JwtAuthenticationcom.auth0.jwt.exceptions.JWTVerificationException