public abstract class RecipientInformation
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected org.bouncycastle.asn1.x509.AlgorithmIdentifier |
keyEncAlg |
protected org.bouncycastle.asn1.x509.AlgorithmIdentifier |
messageAlgorithm |
protected RecipientId |
rid |
protected org.bouncycastle.cms.CMSSecureReadable |
secureReadable |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getContent(java.security.Key key,
java.security.Provider provider)
Deprecated.
use getContent(Recipient)
|
byte[] |
getContent(java.security.Key key,
java.lang.String provider)
Deprecated.
use getContent(Recipient)
|
byte[] |
getContent(Recipient recipient)
Return the decrypted/encapsulated content in the EnvelopedData after recovering the content
encryption/MAC key using the passed in Recipient.
|
byte[] |
getContentDigest()
Return the content digest calculated during the read of the content if one has been generated.
|
abstract CMSTypedStream |
getContentStream(java.security.Key key,
java.security.Provider provider)
Deprecated.
use getContentStream(Recipient) method
|
CMSTypedStream |
getContentStream(java.security.Key key,
java.lang.String provider)
Deprecated.
use getContentStream(Recipient) method
|
CMSTypedStream |
getContentStream(Recipient recipient)
Return a CMSTypedStream representing the content in the EnvelopedData after recovering the content
encryption/MAC key using the passed in Recipient.
|
java.lang.String |
getKeyEncryptionAlgOID()
return the object identifier for the key encryption algorithm.
|
org.bouncycastle.asn1.x509.AlgorithmIdentifier |
getKeyEncryptionAlgorithm()
Return the key encryption algorithm details for the key in this recipient.
|
java.security.AlgorithmParameters |
getKeyEncryptionAlgorithmParameters(java.security.Provider provider)
Deprecated.
use getKeyEncryptionAlgorithm and JceAlgorithmIdentifierConverter().
|
java.security.AlgorithmParameters |
getKeyEncryptionAlgorithmParameters(java.lang.String provider)
Deprecated.
use getKeyEncryptionAlgorithm and JceAlgorithmIdentifierConverter().
|
byte[] |
getKeyEncryptionAlgParams()
return the ASN.1 encoded key encryption algorithm parameters, or null if
there aren't any.
|
byte[] |
getMac()
Return the MAC calculated for the recipient.
|
protected abstract RecipientOperator |
getRecipientOperator(Recipient recipient) |
RecipientId |
getRID() |
protected RecipientId rid
protected org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncAlg
protected org.bouncycastle.asn1.x509.AlgorithmIdentifier messageAlgorithm
protected org.bouncycastle.cms.CMSSecureReadable secureReadable
public RecipientId getRID()
public org.bouncycastle.asn1.x509.AlgorithmIdentifier getKeyEncryptionAlgorithm()
public java.lang.String getKeyEncryptionAlgOID()
public byte[] getKeyEncryptionAlgParams()
public java.security.AlgorithmParameters getKeyEncryptionAlgorithmParameters(java.lang.String provider)
throws CMSException,
java.security.NoSuchProviderException
provider - the provider to generate the parameters for.CMSException - if the algorithm cannot be found, or the parameters can't be parsed.java.security.NoSuchProviderException - if the provider cannot be found.public java.security.AlgorithmParameters getKeyEncryptionAlgorithmParameters(java.security.Provider provider)
throws CMSException
provider - the provider to generate the parameters for.CMSException - if the algorithm cannot be found, or the parameters can't be parsed.public byte[] getContent(java.security.Key key,
java.lang.String provider)
throws CMSException,
java.security.NoSuchProviderException
CMSExceptionjava.security.NoSuchProviderExceptionpublic byte[] getContent(java.security.Key key,
java.security.Provider provider)
throws CMSException
CMSExceptionpublic byte[] getContentDigest()
public byte[] getMac()
public byte[] getContent(Recipient recipient) throws CMSException
recipient - recipient object to use to recover content encryption keyCMSException - if the content-encryption/MAC key cannot be recovered.public CMSTypedStream getContentStream(java.security.Key key, java.lang.String provider) throws CMSException, java.security.NoSuchProviderException
CMSExceptionjava.security.NoSuchProviderExceptionpublic abstract CMSTypedStream getContentStream(java.security.Key key, java.security.Provider provider) throws CMSException
CMSExceptionpublic CMSTypedStream getContentStream(Recipient recipient) throws CMSException, java.io.IOException
recipient - recipient object to use to recover content encryption keyCMSException - if the content-encryption/MAC key cannot be recovered.java.io.IOExceptionprotected abstract RecipientOperator getRecipientOperator(Recipient recipient) throws CMSException, java.io.IOException
CMSExceptionjava.io.IOException