Skip navigation links

Oracle Fusion Middleware PKI SDK CMP Java API Reference for Oracle Security Developer Tools
11g Release 1 (11.1.1)

E10666-03


oracle.security.crypto.cmp
Class CertTemplate

java.lang.Object
  extended by oracle.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.
 javax.security.auth.x500.X500Principal 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.
 java.security.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.
 javax.security.auth.x500.X500Principal 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(javax.security.auth.x500.X500Principal 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(java.security.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(javax.security.auth.x500.X500Principal 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.
Throws:
java.io.IOException

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 javax.security.auth.x500.X500Principal 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 javax.security.auth.x500.X500Principal getSubject()
Returns subject of the requested certificate.

getPublicKey

public java.security.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(javax.security.auth.x500.X500Principal 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(javax.security.auth.x500.X500Principal subject)
Sets the subject of the requested certificate.

setPublicKey

public void setPublicKey(java.security.PublicKey publicKey)
                  throws java.security.InvalidKeyException
Sets the public key of the requested certificate.

Note the changes in the method signature

Previously public void setPublicKey (oracle.security.crypto.core.PublicKey)

Nowpublic void setPublicKey(java.security.PublicKey)

Note : InvalidKeyException is introduced

Throws:
java.security.InvalidKeyException

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()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

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

Skip navigation links

Oracle Fusion Middleware PKI SDK CMP Java API Reference for Oracle Security Developer Tools
11g Release 1 (11.1.1)

E10666-03


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