Class Actions.OcspStatus

    • Constructor Summary

      Constructors 
      Constructor Description
      OcspStatus()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected 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 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

      • quiet

        protected java.lang.Boolean quiet
    • Constructor Detail

      • OcspStatus

        public OcspStatus()
    • Method Detail

      • checkParameters

        protected 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
        Description copied from class: Actions.BaseOcspStatusAction
        Check whether the parameters are valid.
        Specified by:
        checkParameters in class Actions.BaseOcspStatusAction
        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 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
        Description copied from class: Actions.BaseOcspStatusAction
        Check whether the response has the expected issuer, certificate serial numbers and for the given encoded certificates.
        Specified by:
        processResponse in class Actions.BaseOcspStatusAction
        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.