Interface IRecipientInformation

All Known Implementing Classes:
RecipientInformationBC, RecipientInformationBCFips

public interface IRecipientInformation
This interface represents the wrapper for RecipientInformation that provides the ability to switch between bouncy-castle and bouncy-castle FIPS implementations.
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    getContent(IRecipient recipient)
    Calls actual getContent method for the wrapped RecipientInformation object.
    getRID()
    Calls actual getRID method for the wrapped RecipientInformation object.
  • Method Details

    • getContent

      byte[] getContent (IRecipient recipient) throws AbstractCMSException
      Calls actual getContent method for the wrapped RecipientInformation object.
      Parameters:
      recipient - wrapper for recipient object to use to recover content encryption key
      Returns:
      the content inside the EnvelopedData this RecipientInformation is associated with.
      Throws:
      AbstractCMSException - wrapped CMSException if the content-encryption/MAC key cannot be recovered.
    • getRID

      IRecipientId getRID()
      Calls actual getRID method for the wrapped RecipientInformation object.
      Returns:
      IRecipientId the wrapper for received RecipientId object.