public class GeneralResponse extends PKIMessageBody
PKIMessageBody.Type
Constructor and Description |
---|
GeneralResponse()
Create an empty
GeneralResponse . |
GeneralResponse(ASN1ObjectID type)
Create a
GeneralResponse with the specified
type; |
GeneralResponse(ASN1ObjectID type,
ASN1Object value)
Create a
GeneralResponse 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 , replacing
any previously defined InfoTypeandValue for the given type. |
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 GeneralResponse()
GeneralResponse
.public GeneralResponse(ASN1ObjectID type)
GeneralResponse
with the specified
type;public GeneralResponse(ASN1ObjectID type, ASN1Object value)
GeneralResponse
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