Class SingleRespBC

  • All Implemented Interfaces:
    ISingleResp

    public class SingleRespBC
    extends java.lang.Object
    implements ISingleResp
    Wrapper class for SingleResp.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.bouncycastle.cert.ocsp.SingleResp singleResp  
    • Constructor Summary

      Constructors 
      Constructor Description
      SingleRespBC​(IBasicOCSPResponse basicResp)
      Creates new wrapper instance for SingleResp.
      SingleRespBC​(org.bouncycastle.cert.ocsp.SingleResp singleResp)
      Creates new wrapper instance for SingleResp.
    • 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.
      ICertificateID getCertID()
      Calls actual getCertID method for the wrapped SingleResp object.
      ICertificateStatus getCertStatus()
      Calls actual getCertStatus method for the wrapped SingleResp object.
      java.util.Date getNextUpdate()
      Calls actual getNextUpdate method for the wrapped SingleResp object.
      org.bouncycastle.cert.ocsp.SingleResp getSingleResp()
      Gets actual org.bouncycastle object being wrapped.
      java.util.Date getThisUpdate()
      Calls actual getThisUpdate method for the wrapped SingleResp 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

      • singleResp

        private final org.bouncycastle.cert.ocsp.SingleResp singleResp
    • Constructor Detail

      • SingleRespBC

        public SingleRespBC​(org.bouncycastle.cert.ocsp.SingleResp singleResp)
        Creates new wrapper instance for SingleResp.
        Parameters:
        singleResp - SingleResp to be wrapped
      • SingleRespBC

        public SingleRespBC​(IBasicOCSPResponse basicResp)
        Creates new wrapper instance for SingleResp.
        Parameters:
        basicResp - IBasicOCSPResponse wrapper to get SingleResp
    • Method Detail

      • getSingleResp

        public org.bouncycastle.cert.ocsp.SingleResp getSingleResp()
        Gets actual org.bouncycastle object being wrapped.
        Returns:
        wrapped SingleResp.
      • getNextUpdate

        public java.util.Date getNextUpdate()
        Calls actual getNextUpdate method for the wrapped SingleResp object.
        Specified by:
        getNextUpdate in interface ISingleResp
        Returns:
        date of next update.
      • getThisUpdate

        public java.util.Date getThisUpdate()
        Calls actual getThisUpdate method for the wrapped SingleResp object.
        Specified by:
        getThisUpdate in interface ISingleResp
        Returns:
        date of this update.
      • 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