Class TimeStampTokenInfoBC

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.bouncycastle.tsp.TimeStampTokenInfo timeStampTokenInfo  
    • Constructor Summary

      Constructors 
      Constructor Description
      TimeStampTokenInfoBC​(org.bouncycastle.tsp.TimeStampTokenInfo timeStampTokenInfo)
      Creates new wrapper instance for TimeStampTokenInfo.
    • 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 TimeStampTokenInfo object.
      java.util.Date getGenTime()
      Calls actual getGenTime method for the wrapped TimeStampTokenInfo object.
      IAlgorithmIdentifier getHashAlgorithm()
      Calls actual getHashAlgorithm method for the wrapped TimeStampTokenInfo object.
      org.bouncycastle.tsp.TimeStampTokenInfo getTimeStampTokenInfo()
      Gets actual org.bouncycastle object being wrapped.
      int hashCode()
      Returns a hash code value based on the wrapped object.
      ITSTInfo toASN1Structure()
      Calls actual toASN1Structure method for the wrapped TimeStampTokenInfo 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

      • timeStampTokenInfo

        private final org.bouncycastle.tsp.TimeStampTokenInfo timeStampTokenInfo
    • Constructor Detail

      • TimeStampTokenInfoBC

        public TimeStampTokenInfoBC​(org.bouncycastle.tsp.TimeStampTokenInfo timeStampTokenInfo)
        Creates new wrapper instance for TimeStampTokenInfo.
        Parameters:
        timeStampTokenInfo - TimeStampTokenInfo to be wrapped
    • Method Detail

      • getTimeStampTokenInfo

        public org.bouncycastle.tsp.TimeStampTokenInfo getTimeStampTokenInfo()
        Gets actual org.bouncycastle object being wrapped.
        Returns:
        wrapped TimeStampTokenInfo.
      • getGenTime

        public java.util.Date getGenTime()
        Calls actual getGenTime method for the wrapped TimeStampTokenInfo object.
        Specified by:
        getGenTime in interface ITimeStampTokenInfo
        Returns:
        Date the received genTime.
      • getEncoded

        public byte[] getEncoded()
                          throws java.io.IOException
        Calls actual getEncoded method for the wrapped TimeStampTokenInfo object.
        Specified by:
        getEncoded in interface ITimeStampTokenInfo
        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