@ThreadSafe @Deprecated public class JWSVerificationKeySelector extends AbstractJWKSelector implements com.nimbusds.jose.proc.JWSKeySelector
Can be used to select RSA and EC key candidates for the verification of:
Client secret candidates for the verification of:
| Constructor and Description |
|---|
JWSVerificationKeySelector(Identifier id,
com.nimbusds.jose.JWSAlgorithm jwsAlg,
JWKSource jwkSource)
Deprecated.
Creates a new JWS verification key selector.
|
| Modifier and Type | Method and Description |
|---|---|
protected com.nimbusds.jose.jwk.JWKMatcher |
createJWKMatcher(com.nimbusds.jose.JWSHeader jwsHeader)
Deprecated.
Creates a JWK matcher for the expected JWS algorithm and the
specified JWS header.
|
com.nimbusds.jose.JWSAlgorithm |
getExpectedJWSAlgorithm()
Deprecated.
Returns the expected JWS algorithm.
|
JWKSource |
getJWKSource()
Deprecated.
Returns the JWK source.
|
java.util.List<java.security.Key> |
selectJWSKeys(com.nimbusds.jose.JWSHeader jwsHeader,
com.nimbusds.jose.proc.SecurityContext context)
Deprecated.
|
getIdentifierpublic JWSVerificationKeySelector(Identifier id, com.nimbusds.jose.JWSAlgorithm jwsAlg, JWKSource jwkSource)
id - Identifier for the JWS originator, typically an
OAuth 2.0 server issuer ID, or client ID. Must not
be null.jwsAlg - The expected JWS algorithm for the objects to be
verified. Must not be null.jwkSource - The JWK source. Must not be null.public com.nimbusds.jose.JWSAlgorithm getExpectedJWSAlgorithm()
protected com.nimbusds.jose.jwk.JWKMatcher createJWKMatcher(com.nimbusds.jose.JWSHeader jwsHeader)
jwsHeader - The JWS header. Must not be null.null if none could be created.public java.util.List<java.security.Key> selectJWSKeys(com.nimbusds.jose.JWSHeader jwsHeader, com.nimbusds.jose.proc.SecurityContext context)
selectJWSKeys in interface com.nimbusds.jose.proc.JWSKeySelectorpublic JWKSource getJWKSource()
Copyright © 2016 Connect2id Ltd.. All Rights Reserved.