Class Actions.BaseOcspStatusAction

    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected abstract void checkParameters​(org.xipki.security.X509Cert respIssuer, java.util.List<java.math.BigInteger> serialNumbers, java.util.Map<java.math.BigInteger,​byte[]> encodedCerts)
      Check whether the parameters are valid.
      protected java.lang.Object execute0()  
      static java.util.List<java.lang.String> extractOcspUrls​(org.bouncycastle.asn1.x509.AuthorityInformationAccess aia)  
      static java.util.List<java.lang.String> extractOcspUrls​(org.bouncycastle.cert.X509AttributeCertificateHolder cert)  
      static java.util.List<java.lang.String> extractOcspUrls​(org.xipki.security.X509Cert cert)  
      protected abstract void processResponse​(org.bouncycastle.cert.ocsp.OCSPResp response, org.xipki.security.X509Cert respIssuer, org.xipki.security.IssuerHash issuerHash, java.util.List<java.math.BigInteger> serialNumbers, java.util.Map<java.math.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.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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • EXTENSION_OIDNAME_MAP

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

        protected java.lang.Boolean verbose
    • Constructor Detail

      • BaseOcspStatusAction

        public BaseOcspStatusAction()
    • Method Detail

      • checkParameters

        protected abstract void checkParameters​(org.xipki.security.X509Cert respIssuer,
                                                java.util.List<java.math.BigInteger> serialNumbers,
                                                java.util.Map<java.math.BigInteger,​byte[]> encodedCerts)
                                         throws java.lang.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:
        java.lang.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,
                                                java.util.List<java.math.BigInteger> serialNumbers,
                                                java.util.Map<java.math.BigInteger,​byte[]> encodedCerts)
                                         throws java.lang.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:
        java.lang.Exception - if processing response failed.
      • execute0

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

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

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

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