Class JWTAuthentication
java.lang.Object
org.apache.syncope.core.spring.security.JWTAuthentication
- All Implemented Interfaces:
Serializable,Principal,Authentication
Represents the token for an authentication request or for an authenticated principal as JSON Web Token,
once the request has been processed by the
AuthenticationManager.authenticate(Authentication) method.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionJWTAuthentication(com.nimbusds.jwt.JWTClaimsSet claims, SyncopeAuthenticationDetails details) -
Method Summary
Modifier and TypeMethodDescriptionbooleancom.nimbusds.jwt.JWTClaimsSetgetName()inthashCode()booleanvoidsetAuthenticated(boolean authenticated) voidsetUsername(String username) toString()
-
Constructor Details
-
JWTAuthentication
public JWTAuthentication(com.nimbusds.jwt.JWTClaimsSet claims, SyncopeAuthenticationDetails details)
-
-
Method Details
-
getClaims
public com.nimbusds.jwt.JWTClaimsSet getClaims() -
getAuthorities
- Specified by:
getAuthoritiesin interfaceAuthentication
-
getCredentials
- Specified by:
getCredentialsin interfaceAuthentication
-
getDetails
- Specified by:
getDetailsin interfaceAuthentication
-
getPrincipal
- Specified by:
getPrincipalin interfaceAuthentication
-
setUsername
-
isAuthenticated
public boolean isAuthenticated()- Specified by:
isAuthenticatedin interfaceAuthentication
-
setAuthenticated
- Specified by:
setAuthenticatedin interfaceAuthentication- Throws:
IllegalArgumentException
-
getName
-
hashCode
public int hashCode() -
equals
-
toString
-