Oracle Security Developer Tools PKI SDK CMP Java API Reference
10g (10.1.4.0.1)

B28166-01


oracle.security.crypto.cmp
Class CertRequest

java.lang.Object
  extended byoracle.security.crypto.cmp.CertRequest

All Implemented Interfaces:
oracle.security.crypto.asn1.ASN1Object, oracle.security.crypto.util.Streamable

public class CertRequest
extends java.lang.Object
implements oracle.security.crypto.asn1.ASN1Object

CRMF request for a single certificate.

Instances consist of the following elements:

See Also:
CertReqMsg

Constructor Summary
CertRequest(CertTemplate certTemp, java.math.BigInteger certReqID)
          Creates a new CertRequest with the specified certificate template and ID number.
CertRequest(java.io.InputStream is)
          Creates a new CertRequest by reading its encoding from the given input stream.

 

Method Summary
 void addRegControl(oracle.security.crypto.asn1.ASN1ObjectID type, oracle.security.crypto.asn1.ASN1Object value)
          Adds the specified type-and-value pair to the registration controls.
 void addRegControl(RegistrationControl rc)
          Adds the given RegistrationControl to this CertRequest.
 java.math.BigInteger getCertReqID()
          Returns certificate request ID number.
 CertTemplate getCertTemplate()
          Returns the certificate template.
 oracle.security.crypto.cert.AttributeTypeAndValueList getRegControls()
          Returns the sequence of registration controls, or null if none are defined.
 void input(java.io.InputStream is)
           
 int length()
           
 void output(java.io.OutputStream os)
           
 java.lang.String toString()
           

 

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

 

Constructor Detail

CertRequest

public CertRequest(CertTemplate certTemp,
                   java.math.BigInteger certReqID)
Creates a new CertRequest with the specified certificate template and ID number.

CertRequest

public CertRequest(java.io.InputStream is)
            throws java.io.IOException
Creates a new CertRequest by reading its encoding from the given input stream.
Parameters:
is - the input stream.
Throws:
java.io.IOException - if an I/O error occurs during input, or the encoding does not have the correct format.

Method Detail

getCertReqID

public java.math.BigInteger getCertReqID()
Returns certificate request ID number.

getCertTemplate

public CertTemplate getCertTemplate()
Returns the certificate template.

addRegControl

public void addRegControl(RegistrationControl rc)
Adds the given RegistrationControl to this CertRequest.

addRegControl

public void addRegControl(oracle.security.crypto.asn1.ASN1ObjectID type,
                          oracle.security.crypto.asn1.ASN1Object value)
Adds the specified type-and-value pair to the registration controls.
Parameters:
type - the type OID
value - the value.

getRegControls

public oracle.security.crypto.cert.AttributeTypeAndValueList getRegControls()
Returns the sequence of registration controls, or null if none are defined.

toString

public java.lang.String toString()

input

public void input(java.io.InputStream is)
           throws java.io.IOException
Specified by:
input in interface oracle.security.crypto.util.Streamable
Throws:
java.io.IOException

output

public void output(java.io.OutputStream os)
            throws java.io.IOException
Specified by:
output in interface oracle.security.crypto.util.Streamable
Throws:
java.io.IOException

length

public int length()
Specified by:
length in interface oracle.security.crypto.util.Streamable

Oracle Security Developer Tools PKI SDK CMP Java API Reference
10g (10.1.4.0.1)

B28166-01


Copyright © 2005 ,2006 , Oracle. All rights reserved.