public class SyncopeJWTSSOProvider extends Object implements JWTSSOProvider
Constructor and Description |
---|
SyncopeJWTSSOProvider() |
Modifier and Type | Method and Description |
---|---|
org.apache.cxf.rs.security.jose.jws.JwsVerificationSignature |
createJwsVerificationSignature(org.apache.cxf.rs.security.jose.jws.JwsHeaders headers) |
org.apache.cxf.rs.security.jose.jwa.SignatureAlgorithm |
getAlgorithm() |
String |
getIssuer()
Gives the identifier for the JWT issuer verified by this instance.
|
Pair<User,Set<SyncopeGrantedAuthority>> |
resolve(org.apache.cxf.rs.security.jose.jwt.JwtClaims jwtClaims)
Attempts to resolve the given JWT claims into internal
User and authorities. |
boolean |
verify(org.apache.cxf.rs.security.jose.jws.JwsHeaders headers,
String unsignedText,
byte[] signature) |
public String getIssuer()
JWTSSOProvider
getIssuer
in interface JWTSSOProvider
public org.apache.cxf.rs.security.jose.jwa.SignatureAlgorithm getAlgorithm()
getAlgorithm
in interface org.apache.cxf.rs.security.jose.jws.JwsSignatureVerifier
public boolean verify(org.apache.cxf.rs.security.jose.jws.JwsHeaders headers, String unsignedText, byte[] signature)
verify
in interface org.apache.cxf.rs.security.jose.jws.JwsSignatureVerifier
public org.apache.cxf.rs.security.jose.jws.JwsVerificationSignature createJwsVerificationSignature(org.apache.cxf.rs.security.jose.jws.JwsHeaders headers)
createJwsVerificationSignature
in interface org.apache.cxf.rs.security.jose.jws.JwsSignatureVerifier
@Transactional(readOnly=true) public Pair<User,Set<SyncopeGrantedAuthority>> resolve(org.apache.cxf.rs.security.jose.jwt.JwtClaims jwtClaims)
JWTSSOProvider
User
and authorities.
IMPORTANT: this is not invoked for the admin
super-user.resolve
in interface JWTSSOProvider
jwtClaims
- JWT claimsCopyright © 2010–2023 The Apache Software Foundation. All rights reserved.