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:
-
Method Summary
Modifier and TypeMethodDescriptionCollection<? extends org.springframework.security.core.GrantedAuthority>
getKeyId()
getName()
getToken()
boolean
void
setAuthenticated
(boolean isAuthenticated) org.springframework.security.core.Authentication
verify
(com.auth0.jwt.JWTVerifier verifier)
-
Method Details
-
getToken
- Specified by:
getToken
in interfaceJwtAuthentication
-
getKeyId
- Specified by:
getKeyId
in interfaceJwtAuthentication
-
verify
public org.springframework.security.core.Authentication verify(com.auth0.jwt.JWTVerifier verifier) throws com.auth0.jwt.exceptions.JWTVerificationException - Specified by:
verify
in interfaceJwtAuthentication
- Throws:
com.auth0.jwt.exceptions.JWTVerificationException
-
getAuthorities
- Specified by:
getAuthorities
in interfaceorg.springframework.security.core.Authentication
-
getCredentials
- Specified by:
getCredentials
in interfaceorg.springframework.security.core.Authentication
-
getDetails
- Specified by:
getDetails
in interfaceorg.springframework.security.core.Authentication
-
getPrincipal
- Specified by:
getPrincipal
in interfaceorg.springframework.security.core.Authentication
-
isAuthenticated
public boolean isAuthenticated()- Specified by:
isAuthenticated
in interfaceorg.springframework.security.core.Authentication
-
setAuthenticated
- Specified by:
setAuthenticated
in interfaceorg.springframework.security.core.Authentication
- Throws:
IllegalArgumentException
-
getName
-