| Modifier and Type | Field and Description |
|---|---|
| private AuthAttributesProvider | |
| protected AlgorithmIdentifier | |
| protected AlgorithmIdentifier | |
| private RecipientOperator | |
| private byte[] | |
| protected RecipientId | |
| protected CMSSecureReadable |
| Access | Constructor and Description |
|---|---|
| pack-priv | RecipientInformation(AlgorithmIdentifier keyEncAlg, AlgorithmIdentifier messageAlgorithm, CMSSecureReadable secureReadable, AuthAttributesProvider additionalData)
|
| Modifier and Type | Method and Description |
|---|---|
| private byte[] | |
| public byte[] | Returns: the content inside the EnvelopedData this RecipientInformation is associated with.recipient object to use to recover content encryption key recipient)Return the decrypted/encapsulated content in the EnvelopedData after recovering the content encryption/MAC key using the passed in Recipient. |
| public byte[] | Returns: byte array containing the digest.Return the content digest calculated during the read of the content if one has been generated. |
| public CMSTypedStream | Returns: the content inside the EnvelopedData this RecipientInformation is associated with.recipient object to use to recover content encryption key recipient)Return a CMSTypedStream representing the content in the EnvelopedData after recovering the content encryption/MAC key using the passed in Recipient. |
| public ASN1ObjectIdentifier | Returns: the content type OID.Return the content type of the encapsulated data accessed by this recipient. |
| public String | Returns: OID for key encryption algorithm.return the object identifier for the key encryption algorithm. |
| public AlgorithmIdentifier | Returns: AlgorithmIdentifier representing the key encryption algorithm.Return the key encryption algorithm details for the key in this recipient. |
| public byte[] | Returns: ASN.1 encoding of key encryption algorithm parameters.return the ASN.1 encoded key encryption algorithm parameters, or null if there aren't any. |
| public byte[] | |
| protected abstract RecipientOperator | |
| public RecipientId |
| additionalData | back to summary |
|---|---|
| private AuthAttributesProvider additionalData | |
| keyEncAlg | back to summary |
|---|---|
| protected AlgorithmIdentifier keyEncAlg | |
| messageAlgorithm | back to summary |
|---|---|
| protected AlgorithmIdentifier messageAlgorithm | |
| operator | back to summary |
|---|---|
| private RecipientOperator operator | |
| resultMac | back to summary |
|---|---|
| private byte[] resultMac | |
| rid | back to summary |
|---|---|
| protected RecipientId rid | |
| secureReadable | back to summary |
|---|---|
| protected CMSSecureReadable secureReadable | |
| RecipientInformation | back to summary |
|---|---|
| pack-priv RecipientInformation(AlgorithmIdentifier keyEncAlg, AlgorithmIdentifier messageAlgorithm, CMSSecureReadable secureReadable, AuthAttributesProvider additionalData) | |
| encodeObj | back to summary |
|---|---|
| private byte[] encodeObj(ASN1Encodable obj) throws IOException | |
| getContent | back to summary |
|---|---|
| public byte[] getContent(Recipient recipient) throws CMSException Return the decrypted/encapsulated content in the EnvelopedData after recovering the content encryption/MAC key using the passed in Recipient.
| |
| getContentDigest | back to summary |
|---|---|
| public byte[] getContentDigest() Return the content digest calculated during the read of the content if one has been generated. This will only happen if we are dealing with authenticated data and authenticated attributes are present.
| |
| getContentStream | back to summary |
|---|---|
| public CMSTypedStream getContentStream(Recipient recipient) throws CMSException, IOException Return a CMSTypedStream representing the content in the EnvelopedData after recovering the content encryption/MAC key using the passed in Recipient.
| |
| getContentType | back to summary |
|---|---|
| public ASN1ObjectIdentifier getContentType() Return the content type of the encapsulated data accessed by this recipient.
| |
| getKeyEncryptionAlgOID | back to summary |
|---|---|
| public String getKeyEncryptionAlgOID() return the object identifier for the key encryption algorithm.
| |
| getKeyEncryptionAlgorithm | back to summary |
|---|---|
| public AlgorithmIdentifier getKeyEncryptionAlgorithm() Return the key encryption algorithm details for the key in this recipient.
| |
| getKeyEncryptionAlgParams | back to summary |
|---|---|
| public byte[] getKeyEncryptionAlgParams() return the ASN.1 encoded key encryption algorithm parameters, or null if there aren't any.
| |
| getMac | back to summary |
|---|---|
| public byte[] getMac() Return the MAC calculated for the recipient. Note this call is only meaningful once all the content has been read.
| |
| getRecipientOperator | back to summary |
|---|---|
| protected abstract RecipientOperator getRecipientOperator(Recipient recipient) throws CMSException, IOException | |
| getRID | back to summary |
|---|---|
| public RecipientId getRID() | |