iaik.tc.cert
Class CACertificate

Object
  extended by CACertificate

public class CACertificate
extends Object

Certification Authority (CA) style certificates for testing purposes.


Constructor Summary
CACertificate(Properties prop, X509Certificate rootCert, PrivateKey rootCertPrivateKey)
          Creates a certification authority (CA) test certificate.
 
Method Summary
 X509Certificate getCert()
           
 KeyPair getKeyPair()
           
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CACertificate

public CACertificate(Properties prop,
                     X509Certificate rootCert,
                     PrivateKey rootCertPrivateKey)
              throws X509ExtensionException,
                     CertificateException
Creates a certification authority (CA) test certificate.

Before calling set the properties section pointer to the section to be used as input. e.g.

 prop.setSectionPointer("CA);
 ...= new CACertificate.create(prop, ....);

Parameters:
prop - custom setable properties of certificate
rootCert - certificate of issuing authority. If this parameter is null a root type certificate is expected, meaning self signing and Issuer equals Subject.
rootCertPrivateKey - private key of issuing authority
Throws:
X509ExtensionException
CertificateException
Method Detail

getCert

public X509Certificate getCert()

getKeyPair

public KeyPair getKeyPair()