public class CertificateCreator extends Object
Modifier and Type | Field and Description |
---|---|
static String |
SIGN_ALGO
The default sign algorithm for this package is SHA1 with RSA.
|
Constructor and Description |
---|
CertificateCreator() |
Modifier and Type | Method and Description |
---|---|
static X509Certificate |
createTypicalMasterCert(KeyPair keyPair)
Creates a typical Certification Authority (CA) certificate.
|
public static final String SIGN_ALGO
public static X509Certificate createTypicalMasterCert(KeyPair keyPair) throws SignatureException, InvalidKeyException, SecurityException, CertificateException, NoSuchAlgorithmException, NoSuchProviderException
keyPair
- keyPair for the certificateSecurityException
- a security exceptionInvalidKeyException
- an invalid key exceptionNoSuchProviderException
- provider is invalidNoSuchAlgorithmException
- algorithm exceptionCertificateException
- a problem with the certificateSignatureException
- signature exceptionCopyright © 2016. All rights reserved.