|
Bouncy Castle Cryptography 1.45 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.bouncycastle.cms.RecipientInformation
public abstract class RecipientInformation
| Field Summary | |
|---|---|
protected org.bouncycastle.asn1.x509.AlgorithmIdentifier |
authEncAlg
|
protected java.io.InputStream |
data
|
protected org.bouncycastle.asn1.x509.AlgorithmIdentifier |
encAlg
|
protected org.bouncycastle.asn1.x509.AlgorithmIdentifier |
keyEncAlg
|
protected org.bouncycastle.asn1.x509.AlgorithmIdentifier |
macAlg
|
protected RecipientId |
rid
|
| Constructor Summary | |
|---|---|
protected |
RecipientInformation(org.bouncycastle.asn1.x509.AlgorithmIdentifier encAlg,
org.bouncycastle.asn1.x509.AlgorithmIdentifier macAlg,
org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncAlg,
java.io.InputStream data)
Deprecated. |
protected |
RecipientInformation(org.bouncycastle.asn1.x509.AlgorithmIdentifier encAlg,
org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncAlg,
java.io.InputStream data)
Deprecated. |
| Method Summary | |
|---|---|
byte[] |
getContent(java.security.Key key,
java.security.Provider provider)
|
byte[] |
getContent(java.security.Key key,
java.lang.String provider)
|
protected CMSTypedStream |
getContentFromSessionKey(java.security.Key sKey,
java.security.Provider provider)
|
abstract CMSTypedStream |
getContentStream(java.security.Key key,
java.security.Provider provider)
|
CMSTypedStream |
getContentStream(java.security.Key key,
java.lang.String provider)
|
java.lang.String |
getKeyEncryptionAlgOID()
return the object identifier for the key encryption algorithm. |
java.security.AlgorithmParameters |
getKeyEncryptionAlgorithmParameters(java.security.Provider provider)
Return an AlgorithmParameters object giving the encryption parameters used to encrypt the key this recipient holds. |
java.security.AlgorithmParameters |
getKeyEncryptionAlgorithmParameters(java.lang.String provider)
Return an AlgorithmParameters object giving the encryption parameters used to encrypt the key this recipient holds. |
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 content stream. |
RecipientId |
getRID()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected RecipientId rid
protected org.bouncycastle.asn1.x509.AlgorithmIdentifier encAlg
protected org.bouncycastle.asn1.x509.AlgorithmIdentifier macAlg
protected org.bouncycastle.asn1.x509.AlgorithmIdentifier authEncAlg
protected org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncAlg
protected java.io.InputStream data
| Constructor Detail |
|---|
protected RecipientInformation(org.bouncycastle.asn1.x509.AlgorithmIdentifier encAlg,
org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncAlg,
java.io.InputStream data)
protected RecipientInformation(org.bouncycastle.asn1.x509.AlgorithmIdentifier encAlg,
org.bouncycastle.asn1.x509.AlgorithmIdentifier macAlg,
org.bouncycastle.asn1.x509.AlgorithmIdentifier keyEncAlg,
java.io.InputStream data)
| Method Detail |
|---|
public RecipientId getRID()
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.
protected CMSTypedStream getContentFromSessionKey(java.security.Key sKey,
java.security.Provider provider)
throws CMSException
CMSException
public byte[] getContent(java.security.Key key,
java.lang.String provider)
throws CMSException,
java.security.NoSuchProviderException
CMSException
java.security.NoSuchProviderException
public byte[] getContent(java.security.Key key,
java.security.Provider provider)
throws CMSException
CMSExceptionpublic byte[] getMac()
public CMSTypedStream getContentStream(java.security.Key key,
java.lang.String provider)
throws CMSException,
java.security.NoSuchProviderException
CMSException
java.security.NoSuchProviderException
public abstract CMSTypedStream getContentStream(java.security.Key key,
java.security.Provider provider)
throws CMSException
CMSException
|
Bouncy Castle Cryptography 1.45 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||