public class EncryptedPOP
extends java.lang.Object
| Constructor and Description |
|---|
EncryptedPOP()
Creates an empty
EncryptedPOP instance. |
EncryptedPOP(java.io.InputStream is)
Create a new
EncryptedPOP by reading from the specified input stream. |
EncryptedPOP(TaggedRequest taggedRequest, CMSEnvelopedDataContentInfo contentInfo, AlgorithmIdentifier popAlgID, AlgorithmIdentifier witnessAlgID, byte[] witness)
Creates a
EncryptedPOP instance with the specified values. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o)
Compare this
EncryptedPOP to the specified object. |
CMSEnvelopedDataContentInfo |
getContentInfo()
Returns the CMS content.
|
AlgorithmIdentifier |
getPOPAlgID()
Returns the POP algorithm.
|
TaggedRequest |
getRequest()
Sets the enrollment request.
|
byte[] |
getWitness()
Returns the witness bytes.
|
AlgorithmIdentifier |
getWitnessAlgID()
Returns the witness algorithm.
|
void |
input(java.io.InputStream is)
Create a new
EncryptedPOP by reading from the specified input stream. |
int |
length()
Returns the length of this object's encoding.
|
void |
output(java.io.OutputStream os)
Outputs the
EncryptedPOP to the specified output stream. |
void |
setContentInfo(CMSEnvelopedDataContentInfo contentInfo)
Sets the CMS content.
|
void |
setPOPAlgID(AlgorithmIdentifier popAlgID)
Sets the POP algorithm.
|
void |
setRequest(TaggedRequest taggedRequest)
Sets the enrollment request.
|
void |
setWitness(byte[] witness)
Sets the witness bytes.
|
void |
setWitnessAlgID(AlgorithmIdentifier witnessAlgID)
Sets the Witness algorithm.
|
public EncryptedPOP()
EncryptedPOP instance.public EncryptedPOP(TaggedRequest taggedRequest, CMSEnvelopedDataContentInfo contentInfo, AlgorithmIdentifier popAlgID, AlgorithmIdentifier witnessAlgID, byte[] witness)
EncryptedPOP instance with the specified values.taggedRequest - The enrollment request.contentInfo - The enveloped CMS content.popAlgID - The POP algorithm identifier.witnessAlgID - The witness algorithm identifier.witness - The POP bytes.
public EncryptedPOP(java.io.InputStream is)
throws java.io.IOException
EncryptedPOP by reading from the specified input stream.is - The input stream containing the encoded EncryptedPOP.java.io.IOExceptionpublic void setRequest(TaggedRequest taggedRequest)
taggedRequest - The enrollment request.public TaggedRequest getRequest()
TaggedRequest.public void setContentInfo(CMSEnvelopedDataContentInfo contentInfo)
contentInfo - The CMS content.public CMSEnvelopedDataContentInfo getContentInfo()
CMSContentInfo.public void setPOPAlgID(AlgorithmIdentifier popAlgID)
popAlgID - The POP algorithm identifier.public AlgorithmIdentifier getPOPAlgID()
public void setWitnessAlgID(AlgorithmIdentifier witnessAlgID)
witnessAlgID - The witness algorithm identifier.public AlgorithmIdentifier getWitnessAlgID()
public void setWitness(byte[] witness)
witness - The witness bytes.public byte[] getWitness()
public void input(java.io.InputStream is)
throws java.io.IOException
EncryptedPOP by reading from the specified input stream.is - The input stream containing the encoded EncryptedPOP.java.io.IOException - The input encoding is incorrect or an I/O error occurs.
public void output(java.io.OutputStream os)
throws java.io.IOException
EncryptedPOP to the specified output stream.os - The output stream.java.io.IOException - An I/O error occurs.public int length()
public boolean equals(java.lang.Object o)
EncryptedPOP to the specified object. Returns true if and only if the argument is not null and is an EncryptedPOP object which has the same DER encoding as this object.equals in class java.lang.Object