@Internal
public final class JwksSignatureUtils
extends java.lang.Object
JWKSet.| Modifier and Type | Method and Description |
|---|---|
static java.util.List<com.nimbusds.jose.jwk.JWK> |
matches(com.nimbusds.jwt.SignedJWT jwt,
com.nimbusds.jose.jwk.JWKSet jwkSet,
com.nimbusds.jose.jwk.KeyType keyType)
Calculates a list of JWK matches for a JWT.
|
static java.lang.String |
supportedAlgorithmsMessage(com.nimbusds.jose.jwk.JWKSet jwkSet) |
static java.lang.String |
supportedAlgorithmsMessage(java.util.List<com.nimbusds.jose.jwk.JWK> keys) |
static boolean |
supports(com.nimbusds.jose.JWSAlgorithm algorithm,
com.nimbusds.jose.jwk.JWKSet jwkSet)
Whether this signature configuration supports this algorithm.
|
static boolean |
supports(com.nimbusds.jose.JWSAlgorithm algorithm,
java.util.List<com.nimbusds.jose.jwk.JWK> keys)
Whether this signature configuration supports this algorithm.
|
static boolean |
verify(JwkValidator jwkValidator,
java.util.List<com.nimbusds.jose.jwk.JWK> matches,
com.nimbusds.jwt.SignedJWT jwt)
returns true if any JWK match is able to verify the JWT signature.
|
static boolean |
verify(com.nimbusds.jwt.SignedJWT jwt,
com.nimbusds.jose.jwk.JWKSet jwkSet,
JwkValidator jwkValidator)
Verify a signed JWT.
|
public static boolean verify(com.nimbusds.jwt.SignedJWT jwt,
com.nimbusds.jose.jwk.JWKSet jwkSet,
JwkValidator jwkValidator)
throws com.nimbusds.jose.JOSEException
jwkSet - JSON Web Key Setjwt - the signed JWTjwkValidator - JWK Validatorcom.nimbusds.jose.JOSEException - exception when verifying the JWTpublic static boolean supports(com.nimbusds.jose.JWSAlgorithm algorithm,
com.nimbusds.jose.jwk.JWKSet jwkSet)
jwkSet - JSON Web Key Setalgorithm - the signature algorithmpublic static boolean supports(com.nimbusds.jose.JWSAlgorithm algorithm,
java.util.List<com.nimbusds.jose.jwk.JWK> keys)
keys - JSON Web Keysalgorithm - the signature algorithmpublic static java.lang.String supportedAlgorithmsMessage(com.nimbusds.jose.jwk.JWKSet jwkSet)
jwkSet - JSON Web Key Setpublic static java.lang.String supportedAlgorithmsMessage(java.util.List<com.nimbusds.jose.jwk.JWK> keys)
keys - JSON Web Keyspublic static boolean verify(JwkValidator jwkValidator, java.util.List<com.nimbusds.jose.jwk.JWK> matches, com.nimbusds.jwt.SignedJWT jwt)
jwkValidator - JWK Validatormatches - A List of JSON Web key matches.jwt - A JWT to be verified.public static java.util.List<com.nimbusds.jose.jwk.JWK> matches(com.nimbusds.jwt.SignedJWT jwt,
@Nullable
com.nimbusds.jose.jwk.JWKSet jwkSet,
@Nullable
com.nimbusds.jose.jwk.KeyType keyType)
jwt - A Signed JWTjwkSet - A JSON Web Key SetkeyType - Key Type