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
ConstructorDescriptionJWTAuthentication
(com.nimbusds.jwt.JWTClaimsSet claims, SyncopeAuthenticationDetails details) -
Method Summary
Modifier and TypeMethodDescriptionboolean
com.nimbusds.jwt.JWTClaimsSet
getName()
int
hashCode()
boolean
void
setAuthenticated
(boolean authenticated) void
setUsername
(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:
getAuthorities
in interfaceAuthentication
-
getCredentials
- Specified by:
getCredentials
in interfaceAuthentication
-
getDetails
- Specified by:
getDetails
in interfaceAuthentication
-
getPrincipal
- Specified by:
getPrincipal
in interfaceAuthentication
-
setUsername
-
isAuthenticated
public boolean isAuthenticated()- Specified by:
isAuthenticated
in interfaceAuthentication
-
setAuthenticated
- Specified by:
setAuthenticated
in interfaceAuthentication
- Throws:
IllegalArgumentException
-
getName
-
hashCode
public int hashCode() -
equals
-
toString
-