public class GeneralMessage extends PKIMessageBody
PKIMessageBody.Type| Constructor and Description |
|---|
GeneralMessage()
Create an empty
GeneralMessage. |
GeneralMessage(oracle.security.crypto.asn1.ASN1ObjectID type)
Create a
GeneralMessage with the specified type and null value. |
GeneralMessage(oracle.security.crypto.asn1.ASN1ObjectID type, oracle.security.crypto.asn1.ASN1Object value)
Create a
GeneralMessage with the specified type and value. |
GeneralMessage(InfoTypeAndValue info)
Create a
GeneralMessage with the specified InfoTypeAndValue. |
GeneralMessage(java.io.InputStream is) |
| Modifier and Type | Method and Description |
|---|---|
void |
addInfo(oracle.security.crypto.asn1.ASN1ObjectID type)
Add an
ASN1ObjectID type and null value to the data for this message body. |
void |
addInfo(oracle.security.crypto.asn1.ASN1ObjectID type, oracle.security.crypto.asn1.ASN1Object value)
Add a pair of
ASN1ObjectID tye and ASN1Object value to the data for this message body. |
void |
addInfo(InfoTypeAndValue info)
Add an
InfoTypeAndValue to this infoList. |
oracle.security.crypto.cert.AttributeTypeAndValueList |
getInfo()
Return the list of
InfoTypeAndValues in this message body. |
PKIMessageBody.Type |
getType()
Returns one of the values defined in
PKIMessageBody.Type. |
void |
input(java.io.InputStream is)
Initializes this object by reading its encoding from the given input stream.
|
java.lang.String |
toString() |
inputInstance, length, outputpublic GeneralMessage()
GeneralMessage.public GeneralMessage(oracle.security.crypto.asn1.ASN1ObjectID type)
GeneralMessage with the specified type and null value.
public GeneralMessage(oracle.security.crypto.asn1.ASN1ObjectID type,
oracle.security.crypto.asn1.ASN1Object value)
GeneralMessage with the specified type and value.public GeneralMessage(InfoTypeAndValue info)
GeneralMessage with the specified InfoTypeAndValue.
public GeneralMessage(java.io.InputStream is)
throws java.io.IOException
java.io.IOExceptionpublic void addInfo(InfoTypeAndValue info)
InfoTypeAndValue to this infoList. replacing any previously defined InfoTypeandValue for the given type.public void addInfo(oracle.security.crypto.asn1.ASN1ObjectID type)
ASN1ObjectID type and null value to the data for this message body.
public void addInfo(oracle.security.crypto.asn1.ASN1ObjectID type,
oracle.security.crypto.asn1.ASN1Object value)
ASN1ObjectID tye and ASN1Object value to the data for this message body.public oracle.security.crypto.cert.AttributeTypeAndValueList getInfo()
InfoTypeAndValues in this message body.public PKIMessageBody.Type getType()
PKIMessageBodyPKIMessageBody.Type.getType in class PKIMessageBodypublic java.lang.String toString()
toString in class java.lang.Object
public void input(java.io.InputStream is)
throws java.io.IOException
java.io.IOException