Class RecipientInformationBC
java.lang.Object
com.itextpdf.bouncycastle.cms.RecipientInformationBC
- All Implemented Interfaces:
IRecipientInformation
Wrapper class for
RecipientInformation.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.bouncycastle.cms.RecipientInformation -
Constructor Summary
ConstructorsConstructorDescriptionRecipientInformationBC(org.bouncycastle.cms.RecipientInformation recipientInformation) Creates new wrapper instance forRecipientInformation. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.byte[]getContent(IRecipient recipient) Calls actualgetContentmethod for the wrapped RecipientInformation object.org.bouncycastle.cms.RecipientInformationGets actual org.bouncycastle object being wrapped.getRID()Calls actualgetRIDmethod for the wrapped RecipientInformation object.inthashCode()Returns a hash code value based on the wrapped object.toString()DelegatestoStringmethod call to the wrapped object.
-
Field Details
-
recipientInformation
private final org.bouncycastle.cms.RecipientInformation recipientInformation
-
-
Constructor Details
-
RecipientInformationBC
public RecipientInformationBC(org.bouncycastle.cms.RecipientInformation recipientInformation) Creates new wrapper instance forRecipientInformation.- Parameters:
recipientInformation-RecipientInformationto be wrapped
-
-
Method Details
-
getRecipientInformation
public org.bouncycastle.cms.RecipientInformation getRecipientInformation()Gets actual org.bouncycastle object being wrapped.- Returns:
- wrapped
RecipientInformation.
-
getContent
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
Calls actualgetRIDmethod for the wrapped RecipientInformation object.- Specified by:
getRIDin interfaceIRecipientInformation- Returns:
IRecipientIdthe wrapper for received RecipientId object.
-
equals
-
hashCode
-
toString
-