public class Revocation extends Object
| Constructor and Description |
|---|
Revocation() |
| Modifier and Type | Method and Description |
|---|---|
static X509CRL |
generateCRL(List<RevocationInfo> revokedCerts,
KeyStore.PrivateKeyEntry keyEntry)
Creates a Certificate RevocationInfo List (CRL) for the certificate serialnumbers given.
|
static org.bouncycastle.cert.ocsp.OCSPResp |
generateOCSPResponse(org.bouncycastle.cert.ocsp.BasicOCSPRespBuilder respBuilder,
KeyStore.PrivateKeyEntry signingCert)
Generates a OCSPResp.
|
static void |
generateRootCACRL(String signName,
List<RevocationInfo> revokedCerts,
KeyStore.PrivateKeyEntry keyEntry,
String outputCaCrlPath)
Creates a Certificate RevocationInfo List (CRL) for the certificate serialnumbers given.
|
static int |
getCRLReasonFromString(String certReason)
Returns the int value associated with a revocation status
|
static org.bouncycastle.cert.ocsp.BasicOCSPRespBuilder |
initOCSPRespBuilder(org.bouncycastle.cert.ocsp.OCSPReq request,
PublicKey publicKey)
Generate a BasicOCSPRespBuilder.
|
public static int getCRLReasonFromString(String certReason)
certReason - The string representation of the status. Should be lowercase with no spaces or underscorepublic static X509CRL generateCRL(List<RevocationInfo> revokedCerts, KeyStore.PrivateKeyEntry keyEntry)
revokedCerts - List of the serialnumbers that should be revoked.keyEntry - Private key to sign the CRLpublic static void generateRootCACRL(String signName, List<RevocationInfo> revokedCerts, KeyStore.PrivateKeyEntry keyEntry, String outputCaCrlPath)
signName - DN name of the signing certificaterevokedCerts - List of the serialnumbers that should be revoked.keyEntry - Private key to sign the CRLoutputCaCrlPath - Where to place the CRLpublic static org.bouncycastle.cert.ocsp.BasicOCSPRespBuilder initOCSPRespBuilder(org.bouncycastle.cert.ocsp.OCSPReq request,
PublicKey publicKey)
request - The incoming request.publicKey - Public key of the issuer.public static org.bouncycastle.cert.ocsp.OCSPResp generateOCSPResponse(org.bouncycastle.cert.ocsp.BasicOCSPRespBuilder respBuilder,
KeyStore.PrivateKeyEntry signingCert)
respBuilder - A BasicOCSPRespBuildersigningCert - PrivateKeyEntry of the signing certificate.Copyright © 2012–2019 Danish Maritime Authority. All rights reserved.