@ThreadSafe @Deprecated public class JWEDecryptionKeySelector extends AbstractJWKSelector implements com.nimbusds.jose.proc.JWEKeySelector
Can be used to select RSA and EC key candidates for the decryption of:
| Constructor and Description |
|---|
JWEDecryptionKeySelector(Identifier id,
com.nimbusds.jose.JWEAlgorithm jweAlg,
com.nimbusds.jose.EncryptionMethod jweEnc,
JWKSource jwkSource)
Deprecated.
Creates a new decryption key selector.
|
| Modifier and Type | Method and Description |
|---|---|
protected com.nimbusds.jose.jwk.JWKMatcher |
createJWKMatcher(com.nimbusds.jose.JWEHeader jweHeader)
Deprecated.
Creates a JWK matcher for the expected JWE algorithms and the
specified JWE header.
|
com.nimbusds.jose.JWEAlgorithm |
getExpectedJWEAlgorithm()
Deprecated.
Returns the expected JWE algorithm.
|
com.nimbusds.jose.EncryptionMethod |
getExpectedJWEEncryptionMethod()
Deprecated.
The expected JWE encryption method.
|
JWKSource |
getJWKSource()
Deprecated.
Returns the JWK source.
|
List<Key> |
selectJWEKeys(com.nimbusds.jose.JWEHeader jweHeader,
com.nimbusds.jose.proc.SecurityContext context)
Deprecated.
|
getIdentifierpublic JWEDecryptionKeySelector(Identifier id, com.nimbusds.jose.JWEAlgorithm jweAlg, com.nimbusds.jose.EncryptionMethod jweEnc, JWKSource jwkSource)
id - Identifier for the JWE recipient, typically an
OAuth 2.0 server issuer ID, or client ID. Must not
be null.jweAlg - The expected JWE algorithm for the objects to be
decrypted. Must not be null.jweEnc - The expected JWE encryption method for the objects
to be decrypted. Must be RSA or EC based. Must not
be null.jwkSource - The JWK source. Must include the private keys and
must not be null.public com.nimbusds.jose.JWEAlgorithm getExpectedJWEAlgorithm()
public com.nimbusds.jose.EncryptionMethod getExpectedJWEEncryptionMethod()
protected com.nimbusds.jose.jwk.JWKMatcher createJWKMatcher(com.nimbusds.jose.JWEHeader jweHeader)
jweHeader - The JWE header. Must not be null.null if none could be created.public List<Key> selectJWEKeys(com.nimbusds.jose.JWEHeader jweHeader, com.nimbusds.jose.proc.SecurityContext context)
selectJWEKeys in interface com.nimbusds.jose.proc.JWEKeySelectorpublic JWKSource getJWKSource()
Copyright © 2016 Connect2id Ltd.. All rights reserved.