Package org.xipki.ocsp.client.shell
Class Actions.OcspStatus
- java.lang.Object
-
- org.xipki.shell.XiAction
-
- org.xipki.ocsp.client.shell.Actions.CommonOcspStatusAction
-
- org.xipki.ocsp.client.shell.Actions.BaseOcspStatusAction
-
- org.xipki.ocsp.client.shell.Actions.OcspStatus
-
- All Implemented Interfaces:
org.apache.karaf.shell.api.action.Action
- Enclosing class:
- Actions
public static class Actions.OcspStatus extends Actions.BaseOcspStatusAction
-
-
Field Summary
Fields Modifier and Type Field Description protected Booleanquiet-
Fields inherited from class org.xipki.ocsp.client.shell.Actions.BaseOcspStatusAction
EXTENSION_OIDNAME_MAP, verbose
-
Fields inherited from class org.xipki.ocsp.client.shell.Actions.CommonOcspStatusAction
allowNoNonceInResponse, hashAlgo, issuerCertFile, nonceLen, prefSigAlgs, signRequest, useHttpGetForSmallRequest, usenonce
-
-
Constructor Summary
Constructors Constructor Description OcspStatus()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckParameters(org.xipki.security.X509Cert respIssuer, List<BigInteger> serialNumbers, Map<BigInteger,byte[]> encodedCerts)Check whether the parameters are valid.protected voidprocessResponse(org.bouncycastle.cert.ocsp.OCSPResp response, org.xipki.security.X509Cert 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.-
Methods inherited from class org.xipki.ocsp.client.shell.Actions.BaseOcspStatusAction
execute0, extractOcspUrls, extractOcspUrls, extractOcspUrls
-
Methods inherited from class org.xipki.ocsp.client.shell.Actions.CommonOcspStatusAction
getRequestOptions
-
Methods inherited from class org.xipki.shell.XiAction
confirm, derPemEncode, embedFileContent, encodeCert, encodeCrl, encodeCsr, execute, expandFilepath, expandFilepath, isBlank, isEmpty, isEnabled, isNotBlank, isNotEmpty, isTrue, print, println, readPassword, readPassword, readPasswordIfNotSet, readPasswordIfNotSet, readPrompt, resolvePassword, save, save, saveVerbose, saveVerbose, split, toBigInt, toBigInt
-
-
-
-
Field Detail
-
quiet
protected Boolean quiet
-
-
Method Detail
-
checkParameters
protected void checkParameters(org.xipki.security.X509Cert respIssuer, List<BigInteger> serialNumbers, Map<BigInteger,byte[]> encodedCerts) throws ExceptionDescription copied from class:Actions.BaseOcspStatusActionCheck whether the parameters are valid.- Specified by:
checkParametersin classActions.BaseOcspStatusAction- Parameters:
respIssuer- Expected responder issuer. Could benull.serialNumbers- Expected serial numbers. Must not benull.encodedCerts- Map of serial number and the corresponding certificate. Could benull.- Throws:
Exception- if checking failed.
-
processResponse
protected void processResponse(org.bouncycastle.cert.ocsp.OCSPResp response, org.xipki.security.X509Cert respIssuer, org.xipki.security.IssuerHash issuerHash, List<BigInteger> serialNumbers, Map<BigInteger,byte[]> encodedCerts) throws ExceptionDescription copied from class:Actions.BaseOcspStatusActionCheck whether the response has the expected issuer, certificate serial numbers and for the given encoded certificates.- Specified by:
processResponsein classActions.BaseOcspStatusAction- Parameters:
response- OCSP response. Must not benull.respIssuer- Expected responder issuer. Could benull.issuerHash- Expected issuer hash. Must not benull.serialNumbers- Expected serial numbers. Must not benull.encodedCerts- Map of serial number and the corresponding certificate. Could benull.- Throws:
Exception- if processing response failed.
-
-