public class CaEmulator extends Object
| Modifier and Type | Field and Description |
|---|---|
static long |
DAY_IN_MS |
static long |
MIN_IN_MS |
| Constructor and Description |
|---|
CaEmulator(PrivateKey caKey,
org.bouncycastle.asn1.x509.Certificate caCert,
boolean generateCrl) |
| Modifier and Type | Method and Description |
|---|---|
org.bouncycastle.asn1.x509.Certificate |
generateCert(org.bouncycastle.asn1.pkcs.CertificationRequest csr) |
org.bouncycastle.asn1.x509.Certificate |
generateCert(org.bouncycastle.asn1.x509.SubjectPublicKeyInfo pubKeyInfo,
org.bouncycastle.asn1.x500.X500Name subjectDn) |
org.bouncycastle.asn1.x509.Certificate |
generateCert(org.bouncycastle.asn1.x509.SubjectPublicKeyInfo pubKeyInfo,
org.bouncycastle.asn1.x500.X500Name subjectDn,
Date notBefore) |
org.bouncycastle.asn1.x509.Certificate |
getCaCert() |
byte[] |
getCaCertBytes() |
PrivateKey |
getCaKey() |
org.bouncycastle.asn1.x509.Certificate |
getCert(org.bouncycastle.asn1.x500.X500Name issuer,
BigInteger serialNumber) |
org.bouncycastle.operator.ContentVerifierProvider |
getContentVerifierProvider(PublicKey publicKey) |
org.bouncycastle.asn1.x509.CertificateList |
getCrl(org.bouncycastle.asn1.x500.X500Name issuer,
BigInteger serialNumber) |
boolean |
isGenerateCrl() |
org.bouncycastle.asn1.x509.Certificate |
pollCert(org.bouncycastle.asn1.x500.X500Name issuer,
org.bouncycastle.asn1.x500.X500Name subject) |
public static final long MIN_IN_MS
public static final long DAY_IN_MS
public CaEmulator(PrivateKey caKey, org.bouncycastle.asn1.x509.Certificate caCert, boolean generateCrl) throws CertificateEncodingException
CertificateEncodingExceptionpublic PrivateKey getCaKey()
public org.bouncycastle.asn1.x509.Certificate getCaCert()
public byte[] getCaCertBytes()
public boolean isGenerateCrl()
public org.bouncycastle.asn1.x509.Certificate generateCert(org.bouncycastle.asn1.pkcs.CertificationRequest csr)
throws Exception
Exceptionpublic org.bouncycastle.asn1.x509.Certificate generateCert(org.bouncycastle.asn1.x509.SubjectPublicKeyInfo pubKeyInfo,
org.bouncycastle.asn1.x500.X500Name subjectDn)
throws Exception
Exceptionpublic org.bouncycastle.asn1.x509.Certificate generateCert(org.bouncycastle.asn1.x509.SubjectPublicKeyInfo pubKeyInfo,
org.bouncycastle.asn1.x500.X500Name subjectDn,
Date notBefore)
throws Exception
Exceptionpublic org.bouncycastle.asn1.x509.Certificate getCert(org.bouncycastle.asn1.x500.X500Name issuer,
BigInteger serialNumber)
public org.bouncycastle.asn1.x509.Certificate pollCert(org.bouncycastle.asn1.x500.X500Name issuer,
org.bouncycastle.asn1.x500.X500Name subject)
public org.bouncycastle.asn1.x509.CertificateList getCrl(org.bouncycastle.asn1.x500.X500Name issuer,
BigInteger serialNumber)
throws Exception
Exceptionpublic org.bouncycastle.operator.ContentVerifierProvider getContentVerifierProvider(PublicKey publicKey) throws InvalidKeyException
InvalidKeyExceptionCopyright © 2018. All rights reserved.