public class DecryptedPOP
extends java.lang.Object
Constructor and Description |
---|
DecryptedPOP()
Creates an empty
DecryptedPOP instance. |
DecryptedPOP(java.io.InputStream is)
Create a new
DecryptedPOP by reading from the specified input stream. |
DecryptedPOP(long bodyPartID)
Creates a
DecryptedPOP instance with the specified value. |
DecryptedPOP(long bodyPartID,
AlgorithmIdentifier popAlgID)
Creates an
DecryptedPOP instance with the
specified values. |
DecryptedPOP(long bodyPartID,
AlgorithmIdentifier popAlgID,
byte[] pop)
Creates an
DecryptedPOP instance with the
specified values. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Compare this
DecryptedPOP to the specified object. |
long |
getBodyPartID()
Returns the BodyPart Identifier value.
|
AlgorithmIdentifier |
getPOPAlgID()
Returns the POP algorithm.
|
byte[] |
getPOPBytes()
Returns the POP bytes.
|
void |
input(java.io.InputStream is)
Create a new
DecryptedPOP 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
DecryptedPOP to the specified output stream. |
void |
setBodyPartID(long bodyPartID)
Sets the BodyPart Identifier value.
|
void |
setPOPAlgID(AlgorithmIdentifier popAlgID)
Sets the POP algorithm.
|
void |
setPOPBytes(byte[] pop)
Sets the POP bytes.
|
public DecryptedPOP()
DecryptedPOP
instance.public DecryptedPOP(long bodyPartID) throws InvalidInputException
DecryptedPOP
instance with the specified value.bodyPartID
- The integer used to reference the embedded request message.InvalidInputException
public DecryptedPOP(long bodyPartID, AlgorithmIdentifier popAlgID) throws InvalidInputException
DecryptedPOP
instance with the
specified values.bodyPartID
- The integer used to reference the embedded request message.popAlgID
- The POP algorithm identifier.InvalidInputException
public DecryptedPOP(long bodyPartID, AlgorithmIdentifier popAlgID, byte[] pop) throws InvalidInputException
DecryptedPOP
instance with the
specified values.bodyPartID
- The integer used to reference the embedded request message.popAlgID
- The POP algorithm identifier..pop
- The POP bytes.InvalidInputException
public DecryptedPOP(java.io.InputStream is) throws java.io.IOException
DecryptedPOP
by reading from the specified input stream.is
- The input stream containing the encoded DecryptedPOP
.java.io.IOException
public void setBodyPartID(long bodyPartID) throws InvalidInputException
bodyPartID
- The integer used to reference the embedded request message.InvalidInputException
public long getBodyPartID()
public void setPOPAlgID(AlgorithmIdentifier popAlgID)
popAlgID
- The POP algorithm identifier.public AlgorithmIdentifier getPOPAlgID()
public void setPOPBytes(byte[] pop)
pop
- The POP bytes.public byte[] getPOPBytes()
public void input(java.io.InputStream is) throws java.io.IOException
DecryptedPOP
by reading from the specified input stream.is
- The input stream containing the encoded DecryptedPOP
.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
DecryptedPOP
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)
DecryptedPOP
to the specified object. Returns
true
if and only if the argument is not null
and
is an DecryptedPOP
object which has the same DER encoding
as this object.equals
in class java.lang.Object