public class SimpleRetrievalMethodEncryptedKeyResolver extends AbstractEncryptedKeyResolver
EncryptedKeyResolver
which finds EncryptedKey
elements by dereferencing
RetrievalMethod
children of the KeyInfo
of the EncryptedData
context.
The RetrievalMethod must have a Type
attribute with the value of
EncryptionConstants.TYPE_ENCRYPTED_KEY
. The URI
attribute value must be a same-document
fragment identifier (via ID attribute). Processing of transforms children of RetrievalMethod is not supported by this
implementation.Constructor and Description |
---|
SimpleRetrievalMethodEncryptedKeyResolver()
Constructor.
|
SimpleRetrievalMethodEncryptedKeyResolver(Set<String> recipients)
Constructor.
|
SimpleRetrievalMethodEncryptedKeyResolver(String recipient)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected EncryptedKey |
dereferenceURI(RetrievalMethod rm)
Dereference the URI attribute of the specified retrieval method into an EncryptedKey.
|
Iterable<EncryptedKey> |
resolve(EncryptedData encryptedData)
Resolve the EncryptedKey elements containing the data encryption key used to
encrypt the specified EncryptedData element.
|
getRecipients, matchCarriedKeyName, matchDataReference, matchRecipient
private final Logger log
public SimpleRetrievalMethodEncryptedKeyResolver()
public SimpleRetrievalMethodEncryptedKeyResolver(@Nullable Set<String> recipients)
recipients
- the set of recipients@Nonnull public Iterable<EncryptedKey> resolve(@Nonnull EncryptedData encryptedData)
encryptedData
- the EncryptedData element context in which to resolve@Nullable protected EncryptedKey dereferenceURI(@Nonnull RetrievalMethod rm)
rm
- the RetrievalMethod to processCopyright © 1999–2015 JBoss by Red Hat. All rights reserved.