Package com.itextpdf.bouncycastle.cms
Class RecipientInformationBC
- java.lang.Object
-
- com.itextpdf.bouncycastle.cms.RecipientInformationBC
-
- All Implemented Interfaces:
IRecipientInformation
public class RecipientInformationBC extends java.lang.Object implements IRecipientInformation
Wrapper class forRecipientInformation.
-
-
Field Summary
Fields Modifier and Type Field Description private org.bouncycastle.cms.RecipientInformationrecipientInformation
-
Constructor Summary
Constructors Constructor Description RecipientInformationBC(org.bouncycastle.cms.RecipientInformation recipientInformation)Creates new wrapper instance forRecipientInformation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)Indicates whether some other object is "equal to" this one.byte[]getContent(IRecipient recipient)Calls actualgetContentmethod for the wrapped RecipientInformation object.org.bouncycastle.cms.RecipientInformationgetRecipientInformation()Gets actual org.bouncycastle object being wrapped.IRecipientIdgetRID()Calls actualgetRIDmethod for the wrapped RecipientInformation object.inthashCode()Returns a hash code value based on the wrapped object.java.lang.StringtoString()DelegatestoStringmethod call to the wrapped object.
-
-
-
Method Detail
-
getRecipientInformation
public org.bouncycastle.cms.RecipientInformation getRecipientInformation()
Gets actual org.bouncycastle object being wrapped.- Returns:
- wrapped
RecipientInformation.
-
getContent
public byte[] getContent(IRecipient recipient) throws CMSExceptionBC
Calls actualgetContentmethod for the wrapped RecipientInformation object.- Specified by:
getContentin interfaceIRecipientInformation- 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:
CMSExceptionBC
-
getRID
public IRecipientId getRID()
Calls actualgetRIDmethod for the wrapped RecipientInformation object.- Specified by:
getRIDin interfaceIRecipientInformation- Returns:
IRecipientIdthe wrapper for received RecipientId object.
-
equals
public boolean equals(java.lang.Object o)
Indicates whether some other object is "equal to" this one. Compares wrapped objects.- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
Returns a hash code value based on the wrapped object.- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
DelegatestoStringmethod call to the wrapped object.- Overrides:
toStringin classjava.lang.Object
-
-