Class BasicOCSPRespBC

  • All Implemented Interfaces:
    IBasicOCSPResp

    public class BasicOCSPRespBC
    extends java.lang.Object
    implements IBasicOCSPResp
    Wrapper class for BasicOCSPResp.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.bouncycastle.cert.ocsp.BasicOCSPResp basicOCSPResp  
    • Constructor Summary

      Constructors 
      Constructor Description
      BasicOCSPRespBC​(org.bouncycastle.cert.ocsp.BasicOCSPResp basicOCSPResp)
      Creates new wrapper instance for BasicOCSPResp.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)
      Indicates whether some other object is "equal to" this one.
      org.bouncycastle.cert.ocsp.BasicOCSPResp getBasicOCSPResp()
      Gets actual org.bouncycastle object being wrapped.
      IX509CertificateHolder[] getCerts()
      Calls actual getCerts method for the wrapped BasicOCSPResp object.
      byte[] getEncoded()
      Calls actual getEncoded method for the wrapped BasicOCSPResp object.
      IASN1Encodable getExtensionParsedValue​(IASN1ObjectIdentifier objectIdentifier)
      Gets parsed value of the extension retrieved using actual getExtension method for the wrapped BasicOCSPResp object.
      java.util.Date getProducedAt()
      Calls actual getProducedAt method for the wrapped BasicOCSPResp object.
      ISingleResp[] getResponses()
      Calls actual getResponses method for the wrapped BasicOCSPResp object.
      int hashCode()
      Returns a hash code value based on the wrapped object.
      boolean isSignatureValid​(IContentVerifierProvider provider)
      Calls actual isSignatureValid method for the wrapped BasicOCSPResp object.
      java.lang.String toString()
      Delegates toString method call to the wrapped object.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • basicOCSPResp

        private final org.bouncycastle.cert.ocsp.BasicOCSPResp basicOCSPResp
    • Constructor Detail

      • BasicOCSPRespBC

        public BasicOCSPRespBC​(org.bouncycastle.cert.ocsp.BasicOCSPResp basicOCSPResp)
        Creates new wrapper instance for BasicOCSPResp.
        Parameters:
        basicOCSPResp - BasicOCSPResp to be wrapped
    • Method Detail

      • getBasicOCSPResp

        public org.bouncycastle.cert.ocsp.BasicOCSPResp getBasicOCSPResp()
        Gets actual org.bouncycastle object being wrapped.
        Returns:
        wrapped BasicOCSPResp.
      • getResponses

        public ISingleResp[] getResponses()
        Calls actual getResponses method for the wrapped BasicOCSPResp object.
        Specified by:
        getResponses in interface IBasicOCSPResp
        Returns:
        wrapped SingleResp list.
      • getEncoded

        public byte[] getEncoded()
                          throws java.io.IOException
        Calls actual getEncoded method for the wrapped BasicOCSPResp object.
        Specified by:
        getEncoded in interface IBasicOCSPResp
        Returns:
        the default encoding for the wrapped object.
        Throws:
        java.io.IOException - on encoding error.
      • getProducedAt

        public java.util.Date getProducedAt()
        Calls actual getProducedAt method for the wrapped BasicOCSPResp object.
        Specified by:
        getProducedAt in interface IBasicOCSPResp
        Returns:
        produced at date.
      • getExtensionParsedValue

        public IASN1Encodable getExtensionParsedValue​(IASN1ObjectIdentifier objectIdentifier)
        Gets parsed value of the extension retrieved using actual getExtension method for the wrapped BasicOCSPResp object.
        Specified by:
        getExtensionParsedValue in interface IBasicOCSPResp
        Parameters:
        objectIdentifier - extension object identifier
        Returns:
        wrapped extension parsed value.
      • equals

        public boolean equals​(java.lang.Object o)
        Indicates whether some other object is "equal to" this one. Compares wrapped objects.
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Returns a hash code value based on the wrapped object.
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Delegates toString method call to the wrapped object.
        Overrides:
        toString in class java.lang.Object