@Singleton public class DefaultJwkValidator extends Object implements JwkValidator
JwkValidator
which uses a JSON Web Signature (JWS) verifier.Constructor and Description |
---|
DefaultJwkValidator() |
Modifier and Type | Method and Description |
---|---|
protected Optional<com.nimbusds.jose.JWSVerifier> |
getVerifier(com.nimbusds.jose.jwk.JWK jwk) |
boolean |
validate(com.nimbusds.jwt.SignedJWT jwt,
com.nimbusds.jose.jwk.JWK jwk) |
public boolean validate(com.nimbusds.jwt.SignedJWT jwt, com.nimbusds.jose.jwk.JWK jwk)
validate
in interface JwkValidator
jwt
- Signed JWTjwk
- JSON Web Keyprotected Optional<com.nimbusds.jose.JWSVerifier> getVerifier(com.nimbusds.jose.jwk.JWK jwk)
jwk
- A JSON Web Key