Oracle Security Developer Tools PKI SDK CMP Java API Reference
10g Release 2 (10.1.2.0.2)

B15559-01


oracle.security.crypto.cmp
Class GeneralMessage

java.lang.Object
  extended byoracle.security.crypto.cmp.PKIMessageBody
      extended byoracle.security.crypto.cmp.GeneralMessage


public class GeneralMessage
extends PKIMessageBody

PKI message body of type General Message.


Nested Class Summary

Nested classes inherited from class oracle.security.crypto.cmp.PKIMessageBody
PKIMessageBody.Type

Constructor Summary
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.

Method Summary
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.
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()

Methods inherited from class oracle.security.crypto.cmp.PKIMessageBody
inputInstance, length, output

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail

GeneralMessage

public GeneralMessage()
Create an empty GeneralMessage.

GeneralMessage

public GeneralMessage(ASN1ObjectID type)
Create a GeneralMessage with the specified type and null value.

GeneralMessage

public GeneralMessage(ASN1ObjectID type,
                      ASN1Object value)
Create a GeneralMessage with the specified type and value.

Method Detail

addInfo

public void addInfo(InfoTypeAndValue info)
Add an InfoTypeAndValue to this infoList. replacing any previously defined InfoTypeandValue for the given type.

addInfo

public void addInfo(ASN1ObjectID type,
                    ASN1Object value)
Add a pair of ASN1ObjectID tye and ASN1Object value to the data for this message body.

getInfo

public oracle.security.crypto.cert.AttributeTypeAndValueList getInfo()
Return the list of InfoTypeAndValues in this message body.

getType

public PKIMessageBody.Type getType()
Description copied from class: PKIMessageBody
Returns one of the values defined in PKIMessageBody.Type.
Specified by:
getType in class PKIMessageBody

toString

public java.lang.String toString()

input

public void input(java.io.InputStream is)
           throws java.io.IOException
Initializes this object by reading its encoding from the given input stream.
Throws:
java.io.IOException

Oracle Security Developer Tools PKI SDK CMP Java API Reference
10g Release 2 (10.1.2.0.2)

B15559-01


Copyright © 2005 , Oracle. All rights reserved.