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 ofEncryptedKeyResolver
which findsEncryptedKey
elements within theKeyInfo
of theEncryptedData
context.
-
-
Constructor Summary
Constructors Constructor Description InlineEncryptedKeyResolver()
Constructor.InlineEncryptedKeyResolver(String recipient)
Constructor.InlineEncryptedKeyResolver(Set<String> recipients)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods 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 Detail
-
InlineEncryptedKeyResolver
public InlineEncryptedKeyResolver()
Constructor.
-
InlineEncryptedKeyResolver
public InlineEncryptedKeyResolver(@Nullable Set<String> recipients)
Constructor.- Parameters:
recipients
- the set of recipients
-
InlineEncryptedKeyResolver
public InlineEncryptedKeyResolver(@Nullable String recipient)
Constructor.- Parameters:
recipient
- the recipient
-
-
Method Detail
-
resolve
@Nonnull public Iterable<EncryptedKey> resolve(@Nonnull EncryptedData encryptedData)
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
-
-