Class Actions.BaseOcspStatusAction

    • Field Detail

      • EXTENSION_OIDNAME_MAP

        protected static final Map<org.bouncycastle.asn1.ASN1ObjectIdentifier,​String> EXTENSION_OIDNAME_MAP
      • verbose

        protected Boolean verbose
    • Constructor Detail

      • BaseOcspStatusAction

        public BaseOcspStatusAction()
    • Method Detail

      • checkParameters

        protected abstract void checkParameters​(org.xipki.security.X509Cert respIssuer,
                                                List<BigInteger> serialNumbers,
                                                Map<BigInteger,​byte[]> encodedCerts)
                                         throws Exception
        Check whether the parameters are valid.
        Parameters:
        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.
        Throws:
        Exception - if checking failed.
      • processResponse

        protected abstract 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 Exception
        Check whether the response has the expected issuer, certificate serial numbers and for the given encoded certificates.
        Parameters:
        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.
        Throws:
        Exception - if processing response failed.
      • execute0

        protected final Object execute0()
                                 throws Exception
        Specified by:
        execute0 in class org.xipki.shell.XiAction
        Throws:
        Exception
      • extractOcspUrls

        public static List<String> extractOcspUrls​(org.xipki.security.X509Cert cert)
      • extractOcspUrls

        public static List<String> extractOcspUrls​(org.bouncycastle.cert.X509AttributeCertificateHolder cert)
      • extractOcspUrls

        public static List<String> extractOcspUrls​(org.bouncycastle.asn1.x509.AuthorityInformationAccess aia)