cybervillains.ca
Class CertificateCreator

java.lang.Object
  extended by cybervillains.ca.CertificateCreator

public class CertificateCreator
extends Object

Methods for creating certificates. *************************************************************************************** Copyright (c) 2007, Information Security Partners, LLC All rights reserved. In a special exception, Selenium/OpenQA is allowed to use this code under the Apache License 2.0.

Author:
Brad Hill

Field Summary
static String SIGN_ALGO
          The default sign algorithm for this package is SHA1 with RSA.
 
Constructor Summary
CertificateCreator()
           
 
Method Summary
static X509Certificate createTypicalMasterCert(KeyPair keyPair)
          Creates a typical Certification Authority (CA) certificate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SIGN_ALGO

public static final String SIGN_ALGO
The default sign algorithm for this package is SHA1 with RSA.

See Also:
Constant Field Values
Constructor Detail

CertificateCreator

public CertificateCreator()
Method Detail

createTypicalMasterCert

public static X509Certificate createTypicalMasterCert(KeyPair keyPair)
                                               throws SignatureException,
                                                      InvalidKeyException,
                                                      SecurityException,
                                                      CertificateException,
                                                      NoSuchAlgorithmException,
                                                      NoSuchProviderException
Creates a typical Certification Authority (CA) certificate.

Throws:
SecurityException
InvalidKeyException
NoSuchProviderException
NoSuchAlgorithmException
CertificateException
SignatureException


Copyright © 2013. All rights reserved.