@Singleton public class DefaultJwkValidator extends java.lang.Object implements JwkValidator
JwkValidator
which uses a JSON Web Signature (JWS) verifier.Constructor and Description |
---|
DefaultJwkValidator() |
Modifier and Type | Method and Description |
---|---|
protected java.util.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 java.util.Optional<com.nimbusds.jose.JWSVerifier> getVerifier(com.nimbusds.jose.jwk.JWK jwk)
jwk
- A JSON Web Key