Class AuthenticationJsonWebToken
java.lang.Object
com.auth0.spring.security.api.authentication.AuthenticationJsonWebToken
- All Implemented Interfaces:
JwtAuthentication,Serializable,Principal,org.springframework.security.core.Authentication
public class AuthenticationJsonWebToken
extends Object
implements org.springframework.security.core.Authentication, JwtAuthentication
- See Also:
- Serialized Form
-
Method Summary
Modifier and TypeMethodDescriptionCollection<? extends org.springframework.security.core.GrantedAuthority>getKeyId()getName()getToken()booleanvoidsetAuthenticated(boolean isAuthenticated)org.springframework.security.core.Authenticationverify(com.auth0.jwt.JWTVerifier verifier)
-
Method Details
-
getToken
- Specified by:
getTokenin interfaceJwtAuthentication
-
getKeyId
- Specified by:
getKeyIdin interfaceJwtAuthentication
-
verify
public org.springframework.security.core.Authentication verify(com.auth0.jwt.JWTVerifier verifier) throws com.auth0.jwt.exceptions.JWTVerificationException- Specified by:
verifyin interfaceJwtAuthentication- Throws:
com.auth0.jwt.exceptions.JWTVerificationException
-
getAuthorities
- Specified by:
getAuthoritiesin interfaceorg.springframework.security.core.Authentication
-
getCredentials
- Specified by:
getCredentialsin interfaceorg.springframework.security.core.Authentication
-
getDetails
- Specified by:
getDetailsin interfaceorg.springframework.security.core.Authentication
-
getPrincipal
- Specified by:
getPrincipalin interfaceorg.springframework.security.core.Authentication
-
isAuthenticated
public boolean isAuthenticated()- Specified by:
isAuthenticatedin interfaceorg.springframework.security.core.Authentication
-
setAuthenticated
- Specified by:
setAuthenticatedin interfaceorg.springframework.security.core.Authentication- Throws:
IllegalArgumentException
-
getName
-