public class GeneralResponse extends PKIMessageBody
PKIMessageBody.Type
Constructor and Description |
---|
GeneralResponse()
Create an empty
GeneralResponse . |
GeneralResponse(oracle.security.crypto.asn1.ASN1ObjectID type)
Create a
GeneralResponse with the specified type; |
GeneralResponse(oracle.security.crypto.asn1.ASN1ObjectID type, oracle.security.crypto.asn1.ASN1Object value)
Create a
GeneralResponse with the specified type and value. |
GeneralResponse(InfoTypeAndValue info)
Create a
GeneralResponse with the specified InfoTypeAndValue . |
GeneralResponse(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 , 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(oracle.security.crypto.asn1.ASN1ObjectID type)
GeneralResponse
with the specified type;public GeneralResponse(oracle.security.crypto.asn1.ASN1ObjectID type, oracle.security.crypto.asn1.ASN1Object value)
GeneralResponse
with the specified type and value.public GeneralResponse(InfoTypeAndValue info)
GeneralResponse
with the specified InfoTypeAndValue
.public GeneralResponse(java.io.InputStream is) throws java.io.IOException
java.io.IOException
public 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 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