public class OtherMsg
extends java.lang.Object
implements oracle.security.crypto.asn1.ASN1Object
| Constructor and Description |
|---|
OtherMsg()
Creates an empty
OtherMsg instance. |
OtherMsg(java.io.InputStream is)
Create a new
OtherMsg by reading from the specified input stream. |
OtherMsg(long bodyPartID)
Creates a
OtherMsg instance with the specified value. |
OtherMsg(long bodyPartID, oracle.security.crypto.asn1.ASN1ObjectID otherMsgType)
Creates an
OtherMsg instance with the specified values. |
OtherMsg(long bodyPartID, oracle.security.crypto.asn1.ASN1ObjectID otherMsgType, oracle.security.crypto.asn1.ASN1Object otherMsgValue)
Creates an
OtherMsg instance with the specified values. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o)
Compare this
OtherMsg to the specified object. |
long |
getBodyPartID()
Returns the BodyPart Identifier value.
|
oracle.security.crypto.asn1.ASN1ObjectID |
getOtherMsgType()
Returns the type of OtherMsg.
|
oracle.security.crypto.asn1.ASN1Object |
getOtherMsgValue()
Returns the OtherMsg value.
|
void |
input(java.io.InputStream is)
Create a new
OtherMsg 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
OtherMsg to the specified output stream. |
void |
setBodyPartID(long bodyPartID)
Sets the BodyPart Identifier value.
|
void |
setOtherMsgType(oracle.security.crypto.asn1.ASN1ObjectID otherMsgType)
Sets the type of OtherMsg.
|
void |
setOtherMsgValue(oracle.security.crypto.asn1.ASN1Object otherMsgValue)
Sets the OtherMsg value.
|
public OtherMsg()
OtherMsg instance.public OtherMsg(long bodyPartID)
throws oracle.security.crypto.util.InvalidInputException
OtherMsg instance with the specified value.bodyPartID - The unique integer used to reference this control attribute.oracle.security.crypto.util.InvalidInputExceptionpublic OtherMsg(long bodyPartID,
oracle.security.crypto.asn1.ASN1ObjectID otherMsgType)
throws oracle.security.crypto.util.InvalidInputException
OtherMsg instance with the specified values.bodyPartID - The unique integer used to reference this control attribute.otherMsgType - The OID defining the associated value.oracle.security.crypto.util.InvalidInputExceptionpublic OtherMsg(long bodyPartID,
oracle.security.crypto.asn1.ASN1ObjectID otherMsgType,
oracle.security.crypto.asn1.ASN1Object otherMsgValue)
throws oracle.security.crypto.util.InvalidInputException
OtherMsg instance with the specified values.bodyPartID - The unique integer used to reference this control attribute.otherMsgType - The OID defining the associated value.otherMsgValue - The associated value.oracle.security.crypto.util.InvalidInputExceptionpublic OtherMsg(java.io.InputStream is)
throws java.io.IOException
OtherMsg by reading from the specified input stream.is - The input stream containing the encoded OtherMsg.java.io.IOExceptionpublic void setBodyPartID(long bodyPartID)
throws oracle.security.crypto.util.InvalidInputException
bodyPartID - The unique integer used to reference this control attribute.oracle.security.crypto.util.InvalidInputExceptionpublic long getBodyPartID()
public void setOtherMsgType(oracle.security.crypto.asn1.ASN1ObjectID otherMsgType)
otherMsgType - The OID defining the associated value.public oracle.security.crypto.asn1.ASN1ObjectID getOtherMsgType()
public void setOtherMsgValue(oracle.security.crypto.asn1.ASN1Object otherMsgValue)
otherMsgValue - The associated OtherMsg value.public oracle.security.crypto.asn1.ASN1Object getOtherMsgValue()
public void input(java.io.InputStream is)
throws java.io.IOException
OtherMsg by reading from the specified input stream.input in interface oracle.security.crypto.util.Streamableis - The input stream containing the encoded OtherMsg.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
OtherMsg to the specified output stream.output in interface oracle.security.crypto.util.Streamableos - The output stream.java.io.IOException - An I/O error occurs.public int length()
length in interface oracle.security.crypto.util.Streamablepublic boolean equals(java.lang.Object o)
OtherMsg to the specified object. Returns true if and only if the argument is not null and is an OtherMsg object which has the same DER encoding as this object.equals in class java.lang.Object