public abstract static class Actions.BaseOcspStatusAction extends Actions.CommonOcspStatusAction
| Modifier and Type | Field and Description |
|---|---|
protected static Map<org.bouncycastle.asn1.ASN1ObjectIdentifier,String> |
EXTENSION_OIDNAME_MAP |
protected Boolean |
verbose |
allowNoNonceInResponse, hashAlgo, issuerCertFile, nonceLen, prefSigAlgs, signRequest, useHttpGetForSmallRequest, usenonce| Constructor and Description |
|---|
BaseOcspStatusAction() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
checkParameters(X509Certificate respIssuer,
List<BigInteger> serialNumbers,
Map<BigInteger,byte[]> encodedCerts)
Check whether the parameters are valid.
|
protected Object |
execute0() |
static List<String> |
extractOcspUrls(org.bouncycastle.asn1.x509.AuthorityInformationAccess aia) |
static List<String> |
extractOcspUrls(org.bouncycastle.cert.X509AttributeCertificateHolder cert) |
static List<String> |
extractOcspUrls(X509Certificate cert) |
protected abstract void |
processResponse(org.bouncycastle.cert.ocsp.OCSPResp response,
X509Certificate respIssuer,
org.xipki.security.IssuerHash issuerHash,
List<BigInteger> serialNumbers,
Map<BigInteger,byte[]> encodedCerts)
Check whether the response has the expected issuer, certificate serial numbers and
for the given encoded certificates.
|
getRequestOptionsconfirm, derPemEncode, embedFileContent, encodeCert, encodeCrl, encodeCsr, execute, expandFilepath, expandFilepath, isBlank, isEmpty, isEnabled, isNotBlank, isNotEmpty, isTrue, print, println, readPassword, readPassword, readPasswordIfNotSet, readPasswordIfNotSet, readPrompt, save, save, saveVerbose, saveVerbose, split, toBigInt, toBigIntprotected static final Map<org.bouncycastle.asn1.ASN1ObjectIdentifier,String> EXTENSION_OIDNAME_MAP
protected Boolean verbose
protected abstract void checkParameters(X509Certificate respIssuer, List<BigInteger> serialNumbers, Map<BigInteger,byte[]> encodedCerts) throws Exception
respIssuer - Expected responder issuer. Could be null.serialNumbers - Expected serial numbers. Must not be null.encodedCerts - Map of serial number and the corresponding certificate. Could be null.Exception - if checking failed.protected abstract void processResponse(org.bouncycastle.cert.ocsp.OCSPResp response,
X509Certificate respIssuer,
org.xipki.security.IssuerHash issuerHash,
List<BigInteger> serialNumbers,
Map<BigInteger,byte[]> encodedCerts)
throws Exception
response - OCSP response. Must not be null.respIssuer - Expected responder issuer. Could be null.issuerHash - Expected issuer hash. Must not be null.serialNumbers - Expected serial numbers. Must not be null.encodedCerts - Map of serial number and the corresponding certificate. Could be null.Exception - if processing response failed.protected final Object execute0() throws Exception
execute0 in class org.xipki.shell.XiActionExceptionpublic static List<String> extractOcspUrls(X509Certificate cert) throws CertificateEncodingException
CertificateEncodingExceptionpublic static List<String> extractOcspUrls(org.bouncycastle.cert.X509AttributeCertificateHolder cert) throws CertificateEncodingException
CertificateEncodingExceptionpublic static List<String> extractOcspUrls(org.bouncycastle.asn1.x509.AuthorityInformationAccess aia) throws CertificateEncodingException
CertificateEncodingExceptionCopyright © 2020. All rights reserved.