public class GeneralMessage extends PKIMessageBody
PKIMessageBody.Type
Constructor and Description |
---|
GeneralMessage()
Create an empty
GeneralMessage . |
GeneralMessage(ASN1ObjectID type)
Create a
GeneralMessage with the specified type
and null value. |
GeneralMessage(ASN1ObjectID type,
ASN1Object value)
Create a
GeneralMessage with the specified
type and value. |
Modifier and Type | Method and Description |
---|---|
void |
addInfo(ASN1ObjectID type)
Add an
ASN1ObjectID type and null value
to the data for this message body. |
void |
addInfo(ASN1ObjectID type,
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 . |
AttributeTypeAndValueList |
getInfo()
Return the list of
InfoTypeAndValue s 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, output
public GeneralMessage()
GeneralMessage
.public GeneralMessage(ASN1ObjectID type)
GeneralMessage
with the specified type
and null
value.public GeneralMessage(ASN1ObjectID type, ASN1Object value)
GeneralMessage
with the specified
type and value.public void addInfo(InfoTypeAndValue info)
InfoTypeAndValue
to this infoList
. replacing
any previously defined InfoTypeandValue
for the given type.public void addInfo(ASN1ObjectID type)
ASN1ObjectID
type and null
value
to the data for this message body.public void addInfo(ASN1ObjectID type, ASN1Object value)
ASN1ObjectID
tye
and ASN1Object
value to the data for this message body.public AttributeTypeAndValueList getInfo()
InfoTypeAndValue
s in this message body.public PKIMessageBody.Type getType()
PKIMessageBody
PKIMessageBody.Type
.getType
in class PKIMessageBody
public java.lang.String toString()
toString
in class java.lang.Object
public void input(java.io.InputStream is) throws java.io.IOException
java.io.IOException