iaik.tc.cert
Class CACertificate
Object
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. |
Methods inherited from class Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 certificaterootCert
- 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
getCert
public X509Certificate getCert()
getKeyPair
public KeyPair getKeyPair()