Class InlineEncryptedKeyResolver
java.lang.Object
org.opensaml.xmlsec.encryption.support.AbstractEncryptedKeyResolver
org.opensaml.xmlsec.encryption.support.InlineEncryptedKeyResolver
- All Implemented Interfaces:
EncryptedKeyResolver
public class InlineEncryptedKeyResolver extends AbstractEncryptedKeyResolver
Implementation of
EncryptedKeyResolver
which finds EncryptedKey
elements
within the KeyInfo
of the EncryptedData
context.-
Constructor Summary
Constructors Constructor Description InlineEncryptedKeyResolver()
Constructor.InlineEncryptedKeyResolver(String recipient)
Constructor.InlineEncryptedKeyResolver(Set<String> recipients)
Constructor. -
Method Summary
Modifier and Type Method Description Iterable<EncryptedKey>
resolve(EncryptedData encryptedData)
Resolve the EncryptedKey elements containing the data encryption key used to encrypt the specified EncryptedData element.Methods inherited from class org.opensaml.xmlsec.encryption.support.AbstractEncryptedKeyResolver
getRecipients, matchCarriedKeyName, matchDataReference, matchRecipient
-
Constructor Details
-
InlineEncryptedKeyResolver
public InlineEncryptedKeyResolver()Constructor. -
InlineEncryptedKeyResolver
Constructor.- Parameters:
recipients
- the set of recipients
-
InlineEncryptedKeyResolver
Constructor.- Parameters:
recipient
- the recipient
-
-
Method Details
-
resolve
Resolve the EncryptedKey elements containing the data encryption key used to encrypt the specified EncryptedData element.- Parameters:
encryptedData
- the EncryptedData element context in which to resolve- Returns:
- an iterable of EncryptedKey elements
-