public class CertificateAuthority extends Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
ENABLE_PEM_PROLOGUE |
static Provider |
PROVIDER |
| Constructor and Description |
|---|
CertificateAuthority(File p12,
char[] pass,
File pemCert,
BigInteger defaultSerial,
String subject) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
generateCA(String subject,
BigInteger serial) |
X509Certificate |
getCACertificate() |
String |
getHash()
Returns the OpenSSL hash for the Certificate Authority
|
org.bouncycastle.asn1.x509.X509Name |
getIssuer() |
protected void |
init() |
X509Certificate |
issueServer(PublicKey user,
String subject) |
X509Certificate |
issueUser(PublicKey user,
String subject) |
protected void |
loadCA() |
protected void |
save() |
void |
saveHash(File f) |
protected void |
saveJKS(File jks) |
protected void |
saveP12(File p12) |
void |
savePrivatePEM(File caKeyPem) |
void |
savePublicJKS(File jks) |
void |
savePublicPEM(File pem) |
public static final boolean ENABLE_PEM_PROLOGUE
public static final Provider PROVIDER
public X509Certificate getCACertificate()
public void saveHash(File f) throws IOException
IOExceptionpublic String getHash()
protected void generateCA(String subject, BigInteger serial) throws Exception
Exceptionprotected void init()
public org.bouncycastle.asn1.x509.X509Name getIssuer()
public X509Certificate issueUser(PublicKey user, String subject) throws Exception
Exceptionpublic X509Certificate issueServer(PublicKey user, String subject) throws Exception
ExceptionCopyright © 2015. All rights reserved.