Class OCSPToken

    • Constructor Detail

      • OCSPToken

        public OCSPToken()
    • Method Detail

      • setResponseStatus

        public void setResponseStatus​(OCSPRespStatus responseStatus)
      • isUseNonce

        public boolean isUseNonce()
      • setUseNonce

        public void setUseNonce​(boolean useNonce)
      • isNonceMatch

        public boolean isNonceMatch()
      • setNonceMatch

        public void setNonceMatch​(boolean nonceMatch)
      • getBasicOCSPResp

        public org.bouncycastle.cert.ocsp.BasicOCSPResp getBasicOCSPResp()
      • setBasicOCSPResp

        public void setBasicOCSPResp​(org.bouncycastle.cert.ocsp.BasicOCSPResp basicOCSPResp)
      • getCertId

        public org.bouncycastle.cert.ocsp.CertificateID getCertId()
      • setCertId

        public void setCertId​(org.bouncycastle.cert.ocsp.CertificateID certId)
      • isValid

        public boolean isValid()
        Indicates if the token signature is intact.
        Specified by:
        isValid in class RevocationToken
        Returns:
        true or false
      • getAbbreviation

        public String getAbbreviation()
        Description copied from class: Token
        This method returns the DSS abbreviation of the token. It is used for debugging purpose.
        Overrides:
        getAbbreviation in class Token
        Returns:
        an abbreviation for the certificate
      • toString

        public String toString​(String indentStr)
        Description copied from class: Token
        Returns a string representation of the token.
        Specified by:
        toString in class Token
        Parameters:
        indentStr - the indentation to use
        Returns:
        string representation of the token
      • getEncoded

        public byte[] getEncoded()
        Description copied from class: Token
        Returns the encoded form of the wrapped token.
        Specified by:
        getEncoded in class Token
        Returns:
        the encoded form of the wrapped token
      • setIssuerX500Principal

        public void setIssuerX500Principal​(X500Principal issuerX500Principal)
      • getIssuerX500Principal

        public X500Principal getIssuerX500Principal()
        Description copied from class: Token
        Returns the X500Principal of the certificate which was used to sign this token.
        Specified by:
        getIssuerX500Principal in class Token
        Returns:
        the issuer's X500Principal