Package com.itextpdf.bouncycastle.cms
Class RecipientInformationBC
java.lang.Object
com.itextpdf.bouncycastle.cms.RecipientInformationBC
- All Implemented Interfaces:
-
IRecipientInformation
Wrapper class for
RecipientInformation
.
-
Constructor Summary
ConstructorDescriptionRecipientInformationBC
(org.bouncycastle.cms.RecipientInformation recipientInformation) Creates new wrapper instance forRecipientInformation
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Indicates whether some other object is "equal to" this one.byte[]
getContent
(IRecipient recipient) Calls actualgetContent
method for the wrapped RecipientInformation object.org.bouncycastle.cms.RecipientInformation
Gets actual org.bouncycastle object being wrapped.getRID()
Calls actualgetRID
method for the wrapped RecipientInformation object.int
hashCode()
Returns a hash code value based on the wrapped object.toString()
DelegatestoString
method call to the wrapped object.
-
Constructor Details
-
RecipientInformationBC
public RecipientInformationBC(org.bouncycastle.cms.RecipientInformation recipientInformation) Creates new wrapper instance forRecipientInformation
.- 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
Calls actualgetContent
method for the wrapped RecipientInformation object.- Specified by:
-
getContent
in 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 actualgetRID
method for the wrapped RecipientInformation object.- Specified by:
-
getRID
in interfaceIRecipientInformation
- Returns:
-
IRecipientId
the wrapper for received RecipientId object.
-
equals
Indicates whether some other object is "equal to" this one. Compares wrapped objects. -
hashCode
public int hashCode()Returns a hash code value based on the wrapped object. -
toString
DelegatestoString
method call to the wrapped object.
-