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 Details

    • 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 Details

    • 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