Class OCSPReqBC

  • All Implemented Interfaces:
    IOCSPReq

    public class OCSPReqBC
    extends java.lang.Object
    implements IOCSPReq
    Wrapper class for OCSPReq.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.bouncycastle.cert.ocsp.OCSPReq ocspReq  
    • Constructor Summary

      Constructors 
      Constructor Description
      OCSPReqBC​(org.bouncycastle.cert.ocsp.OCSPReq ocspReq)
      Creates new wrapper instance for OCSPReq.
    • 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.
      byte[] getEncoded()
      Calls actual getEncoded method for the wrapped OCSPReq object.
      IExtension getExtension​(IASN1ObjectIdentifier objectIdentifier)
      Calls actual getExtension method for the wrapped OCSPReq object.
      org.bouncycastle.cert.ocsp.OCSPReq getOcspReq()
      Gets actual org.bouncycastle object being wrapped.
      IReq[] getRequestList()
      Calls actual getRequestList method for the wrapped OCSPReq object.
      int hashCode()
      Returns a hash code value based on the wrapped 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

      • ocspReq

        private final org.bouncycastle.cert.ocsp.OCSPReq ocspReq
    • Constructor Detail

      • OCSPReqBC

        public OCSPReqBC​(org.bouncycastle.cert.ocsp.OCSPReq ocspReq)
        Creates new wrapper instance for OCSPReq.
        Parameters:
        ocspReq - OCSPReq to be wrapped
    • Method Detail

      • getOcspReq

        public org.bouncycastle.cert.ocsp.OCSPReq getOcspReq()
        Gets actual org.bouncycastle object being wrapped.
        Returns:
        wrapped OCSPReq.
      • getEncoded

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

        public IReq[] getRequestList()
        Calls actual getRequestList method for the wrapped OCSPReq object.
        Specified by:
        getRequestList in interface IOCSPReq
        Returns:
        IReq request wrappers list.
      • getExtension

        public IExtension getExtension​(IASN1ObjectIdentifier objectIdentifier)
        Calls actual getExtension method for the wrapped OCSPReq object.
        Specified by:
        getExtension in interface IOCSPReq
        Parameters:
        objectIdentifier - ASN1ObjectIdentifier wrapper
        Returns:
        IExtension wrapper for received Extension.
      • 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