public abstract class CMSRecipientInfo
extends java.lang.Object
The base class for all CMSRecipientInfo Objects. A CMSRecipientInfo supports differents key management techniques:
CMSKeyTransRecipientInfo
see CMSKeyTransRecipientInfo
CMSKeyAgreeRecipientInfo
(Will be Supported in the next Release)
see CMSKEKRecipientInfo
CMSKEKRecipientInfo
see CMSKEKRecipientInfo
Constructor and Description |
---|
CMSRecipientInfo()
Create an empty
CMSRecipientInfo . |
CMSRecipientInfo(java.io.InputStream is)
Create a new
CMSRecipientInfo by reading the BER encoding from the specified
input stream. |
Modifier and Type | Method and Description |
---|---|
abstract ASN1Integer |
getVersion()
Returns the Version of the CMSRecipientInfo.
|
void |
input(java.io.InputStream is)
Read the BER encoded
CMSRecipientInfo structure from the input stream. |
static CMSRecipientInfo |
inputInstance(java.io.InputStream is)
Create and intialize a
CMSRecipientInfo by reading the BER encoding from the
specified input stream. |
protected abstract void |
inputRecipientInfo(java.io.InputStream is)
Reads the CMSRecipientInfo structure.
|
public CMSRecipientInfo()
CMSRecipientInfo
.public CMSRecipientInfo(java.io.InputStream is) throws java.io.IOException
CMSRecipientInfo
by reading the BER encoding from the specified
input stream.is
- The input stream.java.io.IOException
- The encoding is incorrect or an I/O error occurs.public void input(java.io.InputStream is) throws java.io.IOException
CMSRecipientInfo
structure from the input stream.is
- The input stream.java.io.IOException
- The input encoding is incorrect or an I/O error occurs.public static CMSRecipientInfo inputInstance(java.io.InputStream is) throws java.io.IOException
CMSRecipientInfo
by reading the BER encoding from the
specified input stream.is
- The input stream.java.io.IOException
- The encoding is incorrect or an I/O error occurs.protected abstract void inputRecipientInfo(java.io.InputStream is) throws java.io.IOException
The input stream is positioned at the beginning of the tag octet of the SEQUENCE encoding.
is
- The input stream.java.io.IOException
- The encoding is incorrect or an I/O error occurs.public abstract ASN1Integer getVersion()