Class CustomJWTSSOProvider
- java.lang.Object
- 
- org.apache.syncope.fit.core.reference.CustomJWTSSOProvider
 
- 
- All Implemented Interfaces:
- com.nimbusds.jose.jca.JCAAware<com.nimbusds.jose.jca.JCAContext>,- com.nimbusds.jose.JOSEProvider,- com.nimbusds.jose.JWSProvider,- com.nimbusds.jose.JWSVerifier,- JWTSSOProvider
 
 public class CustomJWTSSOProvider extends Object implements JWTSSOProvider Custom implementation for internal JWT validation.
- 
- 
Field SummaryFields Modifier and Type Field Description static StringCUSTOM_KEYstatic StringISSUER
 - 
Constructor SummaryConstructors Constructor Description CustomJWTSSOProvider(AnySearchDAO anySearchDAO, AuthDataAccessor authDataAccessor)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetIssuer()Gives the identifier for the JWT issuer verified by this instance.com.nimbusds.jose.jca.JCAContextgetJCAContext()Pair<User,Set<SyncopeGrantedAuthority>>resolve(com.nimbusds.jwt.JWTClaimsSet jwtClaims)Attempts to resolve the given JWT claims into internalUserand authorities.Set<com.nimbusds.jose.JWSAlgorithm>supportedJWSAlgorithms()booleanverify(com.nimbusds.jose.JWSHeader header, byte[] signingInput, com.nimbusds.jose.util.Base64URL signature)
 
- 
- 
- 
Field Detail- 
ISSUERpublic static final String ISSUER - See Also:
- Constant Field Values
 
 - 
CUSTOM_KEYpublic static final String CUSTOM_KEY - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
CustomJWTSSOProviderpublic CustomJWTSSOProvider(AnySearchDAO anySearchDAO, AuthDataAccessor authDataAccessor) throws com.nimbusds.jose.JOSEException - Throws:
- com.nimbusds.jose.JOSEException
 
 
- 
 - 
Method Detail- 
getIssuerpublic String getIssuer() Description copied from interface:JWTSSOProviderGives the identifier for the JWT issuer verified by this instance.- Specified by:
- getIssuerin interface- JWTSSOProvider
- Returns:
- identifier for the JWT issuer verified by this instance
 
 - 
supportedJWSAlgorithmspublic Set<com.nimbusds.jose.JWSAlgorithm> supportedJWSAlgorithms() - Specified by:
- supportedJWSAlgorithmsin interface- com.nimbusds.jose.JWSProvider
 
 - 
getJCAContextpublic com.nimbusds.jose.jca.JCAContext getJCAContext() - Specified by:
- getJCAContextin interface- com.nimbusds.jose.jca.JCAAware<com.nimbusds.jose.jca.JCAContext>
 
 - 
verifypublic boolean verify(com.nimbusds.jose.JWSHeader header, byte[] signingInput, com.nimbusds.jose.util.Base64URL signature) throws com.nimbusds.jose.JOSEException- Specified by:
- verifyin interface- com.nimbusds.jose.JWSVerifier
- Throws:
- com.nimbusds.jose.JOSEException
 
 - 
resolve@Transactional(readOnly=true) public Pair<User,Set<SyncopeGrantedAuthority>> resolve(com.nimbusds.jwt.JWTClaimsSet jwtClaims) Description copied from interface:JWTSSOProviderAttempts to resolve the given JWT claims into internalUserand authorities. IMPORTANT: this is not invoked for theadminsuper-user.- Specified by:
- resolvein interface- JWTSSOProvider
- Parameters:
- jwtClaims- JWT claims
- Returns:
- internal User, with authorities, matching the provided JWT claims, if found; otherwise null
 
 
- 
 
-