Class TimeStampRequestBCFips

java.lang.Object
com.itextpdf.bouncycastlefips.tsp.TimeStampRequestBCFips
All Implemented Interfaces:
ITimeStampRequest

public class TimeStampRequestBCFips extends Object implements ITimeStampRequest
Wrapper class for TimeStampRequest.
  • Constructor Summary

    Constructors
    Constructor
    Description
    TimeStampRequestBCFips(org.bouncycastle.tsp.TimeStampRequest timeStampRequest)
    Creates new wrapper instance for TimeStampRequest.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Indicates whether some other object is "equal to" this one.
    byte[]
    Calls actual getEncoded method for wrapped TimeStampRequest object.
    Calls actual getNonce method for wrapped TimeStampRequest object.
    org.bouncycastle.tsp.TimeStampRequest
    Gets actual org.bouncycastle object being wrapped.
    int
    Returns a hash code value based on the wrapped object.
    Delegates toString method call to the wrapped object.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • TimeStampRequestBCFips

      public TimeStampRequestBCFips (org.bouncycastle.tsp.TimeStampRequest timeStampRequest)
      Creates new wrapper instance for TimeStampRequest.
      Parameters:
      timeStampRequest - TimeStampRequest to be wrapped
  • Method Details

    • getTimeStampRequest

      public org.bouncycastle.tsp.TimeStampRequest getTimeStampRequest()
      Gets actual org.bouncycastle object being wrapped.
      Returns:
      wrapped TimeStampRequest.
    • getEncoded

      public byte[] getEncoded() throws IOException
      Calls actual getEncoded method for wrapped TimeStampRequest object.
      Specified by:
      getEncoded in interface ITimeStampRequest
      Returns:
      the default encoding for the wrapped object.
      Throws:
      IOException - on encoding error.
    • getNonce

      public BigInteger getNonce()
      Calls actual getNonce method for wrapped TimeStampRequest object.
      Specified by:
      getNonce in interface ITimeStampRequest
      Returns:
      nonce value.
    • equals

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

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

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