Class RecipientInformationBCFips

java.lang.Object
com.itextpdf.bouncycastlefips.cms.RecipientInformationBCFips
All Implemented Interfaces:
IRecipientInformation

public class RecipientInformationBCFips extends Object implements IRecipientInformation
Wrapper class for RecipientInformation.
  • Constructor Summary

    Constructors
    Constructor
    Description
    RecipientInformationBCFips(org.bouncycastle.cms.RecipientInformation recipientInformation)
    Creates new wrapper instance for RecipientInformation.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Indicates whether some other object is "equal to" this one.
    byte[]
    getContent(IRecipient recipient)
    Calls actual getContent method for the wrapped RecipientInformation object.
    org.bouncycastle.cms.RecipientInformation
    Gets actual org.bouncycastle object being wrapped.
    getRID()
    Calls actual getRID method for the wrapped RecipientInformation object.
    int
    Returns a hash code value based on the wrapped object.
    Delegates toString method call to the wrapped object.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • RecipientInformationBCFips

      public RecipientInformationBCFips (org.bouncycastle.cms.RecipientInformation recipientInformation)
      Creates new wrapper instance for RecipientInformation.
      Parameters:
      recipientInformation - RecipientInformation to be wrapped
  • Method Details

    • getRecipientInformation

      public org.bouncycastle.cms.RecipientInformation getRecipientInformation()
      Gets actual org.bouncycastle object being wrapped.
      Returns:
      wrapped RecipientInformation.
    • getContent

      public byte[] getContent (IRecipient recipient) throws CMSExceptionBCFips
      Calls actual getContent method for the wrapped RecipientInformation object.
      Specified by:
      getContent in interface IRecipientInformation
      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:
      CMSExceptionBCFips
    • getRID

      public IRecipientId getRID()
      Calls actual getRID method for the wrapped RecipientInformation object.
      Specified by:
      getRID in interface IRecipientInformation
      Returns:
      IRecipientId the wrapper for received RecipientId object.
    • equals

      public boolean equals (Object o)
      Indicates whether some other object is "equal to" this one. Compares wrapped objects.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Returns a hash code value based on the wrapped object.
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Delegates toString method call to the wrapped object.
      Overrides:
      toString in class Object