public class IssuedCertificate extends Object
| Modifier and Type | Field and Description |
|---|---|
X509Certificate |
cacert |
KeyPair |
keypair |
X509Certificate |
mycert |
| Constructor and Description |
|---|
IssuedCertificate(X509Certificate ca,
KeyPair keypair,
X509Certificate certificate) |
| Modifier and Type | Method and Description |
|---|---|
static IssuedCertificate |
generateServerCert(CertificateAuthority auth,
String subject,
int strength) |
static IssuedCertificate |
generateUserCert(CertificateAuthority auth,
String subject,
int strength) |
String |
getCAHash() |
String |
getHash() |
void |
saveCertPEM(File pem) |
void |
saveCertPEM(Writer ww) |
void |
saveJKS(File jks) |
void |
saveJKS(OutputStream os) |
void |
saveKeyPEM(File pem) |
void |
saveKeyPEM(Writer ww) |
void |
saveP12(File p12) |
void |
saveP12(File p12,
char[] pass) |
void |
saveP12(OutputStream os,
char[] pass) |
public KeyPair keypair
public X509Certificate mycert
public X509Certificate cacert
public IssuedCertificate(X509Certificate ca, KeyPair keypair, X509Certificate certificate)
public void saveP12(OutputStream os, char[] pass) throws Exception
Exceptionpublic void saveJKS(OutputStream os) throws Exception
Exceptionpublic String getHash()
public String getCAHash()
public static IssuedCertificate generateUserCert(CertificateAuthority auth, String subject, int strength) throws Exception
Exceptionpublic static IssuedCertificate generateServerCert(CertificateAuthority auth, String subject, int strength) throws Exception
ExceptionCopyright © 2014. All rights reserved.