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

B28166-01


oracle.security.crypto.cmp
Class CertTemplate

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

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

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

CRMF certificate request properties template.

See Also:
CertRequest

Constructor Summary
CertTemplate()
          Create an empty CertTemplate.
CertTemplate(java.io.InputStream is)
          Instantiate a CertTemplate from the specified input stream.

 

Method Summary
 void addExtension(oracle.security.crypto.cert.X509Extension ext)
          Adds an extension to this template's extension set.
 boolean equals(java.lang.Object o)
           
 oracle.security.crypto.cert.X509ExtensionSet getExtensions()
          Returns extensions of the requested certificate.
 oracle.security.crypto.cert.X500Name getIssuer()
          Returns issuer of the requested certificate.
 byte[] getIssuerUID()
          Returns issuer's unique identifier of the requested certificate.
 java.util.Date getNotAfterDate()
          Returns date not valid after of the requested certificate.
 java.util.Date getNotBeforeDate()
          Returns date not valid before of the requested certificate.
 oracle.security.crypto.core.PublicKey getPublicKey()
          Returns public key of the requested certificate.
 java.math.BigInteger getSerialNo()
          Returns serial number of the requested certificate.
 oracle.security.crypto.core.AlgorithmIdentifier getSigAlgID()
          Returns signing algorithm of the requested certificate.
 oracle.security.crypto.cert.X500Name getSubject()
          Returns subject of the requested certificate.
 byte[] getSubjectUID()
          Returns subject's unique identifier of the requested certificate.
 java.math.BigInteger getVersion()
          Returns version number of the requested certificate.
 void input(java.io.InputStream is)
           
 int length()
           
 void output(java.io.OutputStream os)
           
 void setExtensions(oracle.security.crypto.cert.X509ExtensionSet extensions)
          Sets the extensions of the requested certificate.
 void setIssuer(oracle.security.crypto.cert.X500Name issuer)
          Sets the issuer of the requested certificate.
 void setIssuerUID(byte[] issuerUID)
          Sets the issuer's unique identifier of the requested certificate.
 void setNotAfterDate(java.util.Date notAferDate)
          Sets the date not valid after of the requested certificate.
 void setNotBeforeDate(java.util.Date notBeforeDate)
          Sets the date not valid before of the requested certificate.
 void setPublicKey(oracle.security.crypto.core.PublicKey publicKey)
          Sets the public key of the requested certificate.
 void setSerialNo(java.math.BigInteger serialNo)
          Sets the serial number of the requested certificate.
 void setSigAlgID(oracle.security.crypto.core.AlgorithmIdentifier signingAlg)
          Sets the signing algorithm ID of the requested certificate.
 void setSubject(oracle.security.crypto.cert.X500Name subject)
          Sets the subject of the requested certificate.
 void setSubjectUID(byte[] subjectUID)
          Sets the subject's unique identifier of the requested certificate.
 void setVersion(java.math.BigInteger version)
          Sets the version number of the requested certificate.
 java.lang.String toString()
           

 

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

 

Constructor Detail

CertTemplate

public CertTemplate()
Create an empty CertTemplate.

CertTemplate

public CertTemplate(java.io.InputStream is)
             throws java.io.IOException
Instantiate a CertTemplate from the specified input stream.

Method Detail

getVersion

public java.math.BigInteger getVersion()
Returns version number of the requested certificate.

getSerialNo

public java.math.BigInteger getSerialNo()
Returns serial number of the requested certificate.

getSigAlgID

public oracle.security.crypto.core.AlgorithmIdentifier getSigAlgID()
Returns signing algorithm of the requested certificate.

getIssuer

public oracle.security.crypto.cert.X500Name getIssuer()
Returns issuer of the requested certificate.

getNotBeforeDate

public java.util.Date getNotBeforeDate()
Returns date not valid before of the requested certificate.

getNotAfterDate

public java.util.Date getNotAfterDate()
Returns date not valid after of the requested certificate.

getSubject

public oracle.security.crypto.cert.X500Name getSubject()
Returns subject of the requested certificate.

getPublicKey

public oracle.security.crypto.core.PublicKey getPublicKey()
Returns public key of the requested certificate.

getIssuerUID

public byte[] getIssuerUID()
Returns issuer's unique identifier of the requested certificate.

getSubjectUID

public byte[] getSubjectUID()
Returns subject's unique identifier of the requested certificate.

getExtensions

public oracle.security.crypto.cert.X509ExtensionSet getExtensions()
Returns extensions of the requested certificate.

setVersion

public void setVersion(java.math.BigInteger version)
Sets the version number of the requested certificate.

setSerialNo

public void setSerialNo(java.math.BigInteger serialNo)
Sets the serial number of the requested certificate.

setSigAlgID

public void setSigAlgID(oracle.security.crypto.core.AlgorithmIdentifier signingAlg)
Sets the signing algorithm ID of the requested certificate.

setIssuer

public void setIssuer(oracle.security.crypto.cert.X500Name issuer)
Sets the issuer of the requested certificate.

setNotBeforeDate

public void setNotBeforeDate(java.util.Date notBeforeDate)
Sets the date not valid before of the requested certificate.

setNotAfterDate

public void setNotAfterDate(java.util.Date notAferDate)
Sets the date not valid after of the requested certificate.

setSubject

public void setSubject(oracle.security.crypto.cert.X500Name subject)
Sets the subject of the requested certificate.

setPublicKey

public void setPublicKey(oracle.security.crypto.core.PublicKey publicKey)
Sets the public key of the requested certificate.

setIssuerUID

public void setIssuerUID(byte[] issuerUID)
Sets the issuer's unique identifier of the requested certificate.

setSubjectUID

public void setSubjectUID(byte[] subjectUID)
Sets the subject's unique identifier of the requested certificate.

setExtensions

public void setExtensions(oracle.security.crypto.cert.X509ExtensionSet extensions)
Sets the extensions of the requested certificate.

addExtension

public void addExtension(oracle.security.crypto.cert.X509Extension ext)
Adds an extension to this template's extension set.

toString

public java.lang.String toString()

equals

public boolean equals(java.lang.Object o)

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.