Class TimeStampResponseBC

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.bouncycastle.tsp.TimeStampResponse timeStampResponse  
    • Constructor Summary

      Constructors 
      Constructor Description
      TimeStampResponseBC​(org.bouncycastle.tsp.TimeStampResponse timeStampResponse)
      Creates new wrapper instance for TimeStampResponse.
    • 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 TimeStampResponse object.
      IPKIFailureInfo getFailInfo()
      Calls actual getFailInfo method for the wrapped TimeStampResponse object.
      java.lang.String getStatusString()
      Calls actual getStatusString method for the wrapped TimeStampResponse object.
      org.bouncycastle.tsp.TimeStampResponse getTimeStampResponse()
      Gets actual org.bouncycastle object being wrapped.
      ITimeStampToken getTimeStampToken()
      Calls actual getTimeStampToken method for the wrapped TimeStampResponse 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.
      void validate​(ITimeStampRequest request)
      Calls actual validate method for the wrapped TimeStampResponse object.
      • Methods inherited from class java.lang.Object

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

      • timeStampResponse

        private final org.bouncycastle.tsp.TimeStampResponse timeStampResponse
    • Constructor Detail

      • TimeStampResponseBC

        public TimeStampResponseBC​(org.bouncycastle.tsp.TimeStampResponse timeStampResponse)
        Creates new wrapper instance for TimeStampResponse.
        Parameters:
        timeStampResponse - TimeStampResponse to be wrapped
    • Method Detail

      • getTimeStampResponse

        public org.bouncycastle.tsp.TimeStampResponse getTimeStampResponse()
        Gets actual org.bouncycastle object being wrapped.
        Returns:
        wrapped TimeStampResponse.
      • getStatusString

        public java.lang.String getStatusString()
        Calls actual getStatusString method for the wrapped TimeStampResponse object.
        Specified by:
        getStatusString in interface ITimeStampResponse
        Returns:
        status string.
      • getEncoded

        public byte[] getEncoded()
                          throws java.io.IOException
        Calls actual getEncoded method for the wrapped TimeStampResponse object.
        Specified by:
        getEncoded in interface ITimeStampResponse
        Returns:
        the default encoding for the wrapped object.
        Throws:
        java.io.IOException - on encoding error.
      • 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