public class EncryptedPOP
extends java.lang.Object
implements oracle.security.crypto.asn1.ASN1Object
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, oracle.security.crypto.core.AlgorithmIdentifier popAlgID, oracle.security.crypto.core.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.
|
oracle.security.crypto.core.AlgorithmIdentifier |
getPOPAlgID()
Returns the POP algorithm.
|
TaggedRequest |
getRequest()
Sets the enrollment request.
|
byte[] |
getWitness()
Returns the witness bytes.
|
oracle.security.crypto.core.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(oracle.security.crypto.core.AlgorithmIdentifier popAlgID)
Sets the POP algorithm.
|
void |
setRequest(TaggedRequest taggedRequest)
Sets the enrollment request.
|
void |
setWitness(byte[] witness)
Sets the witness bytes.
|
void |
setWitnessAlgID(oracle.security.crypto.core.AlgorithmIdentifier witnessAlgID)
Sets the Witness algorithm.
|
public EncryptedPOP()
EncryptedPOP
instance.public EncryptedPOP(TaggedRequest taggedRequest, CMSEnvelopedDataContentInfo contentInfo, oracle.security.crypto.core.AlgorithmIdentifier popAlgID, oracle.security.crypto.core.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.IOException
public 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(oracle.security.crypto.core.AlgorithmIdentifier popAlgID)
popAlgID
- The POP algorithm identifier.public oracle.security.crypto.core.AlgorithmIdentifier getPOPAlgID()
public void setWitnessAlgID(oracle.security.crypto.core.AlgorithmIdentifier witnessAlgID)
witnessAlgID
- The witness algorithm identifier.public oracle.security.crypto.core.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.input
in interface oracle.security.crypto.util.Streamable
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.output
in interface oracle.security.crypto.util.Streamable
os
- The output stream.java.io.IOException
- An I/O error occurs.public int length()
length
in interface oracle.security.crypto.util.Streamable
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