Class TimeStampRequestGeneratorBC

java.lang.Object
com.itextpdf.bouncycastle.tsp.TimeStampRequestGeneratorBC
All Implemented Interfaces:
ITimeStampRequestGenerator

public class TimeStampRequestGeneratorBC extends Object implements ITimeStampRequestGenerator
Wrapper class for TimeStampRequestGenerator.
  • Constructor Summary

    Constructors
    Constructor
    Description
    TimeStampRequestGeneratorBC(org.bouncycastle.tsp.TimeStampRequestGenerator requestGenerator)
    Creates new wrapper instance for TimeStampRequestGenerator.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Indicates whether some other object is "equal to" this one.
    generate(IASN1ObjectIdentifier objectIdentifier, byte[] imprint, BigInteger nonce)
    Calls actual generate method for the wrapped TimeStampRequestGenerator object.
    org.bouncycastle.tsp.TimeStampRequestGenerator
    Gets actual org.bouncycastle object being wrapped.
    int
    Returns a hash code value based on the wrapped object.
    void
    setCertReq(boolean var1)
    Calls actual setCertReq method for the wrapped TimeStampRequestGenerator object.
    void
    setReqPolicy(String reqPolicy)
    Calls actual setReqPolicy method for the wrapped TimeStampRequestGenerator 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

    • TimeStampRequestGeneratorBC

      public TimeStampRequestGeneratorBC (org.bouncycastle.tsp.TimeStampRequestGenerator requestGenerator)
      Creates new wrapper instance for TimeStampRequestGenerator.
      Parameters:
      requestGenerator - TimeStampRequestGenerator to be wrapped
  • Method Details

    • getRequestGenerator

      public org.bouncycastle.tsp.TimeStampRequestGenerator getRequestGenerator()
      Gets actual org.bouncycastle object being wrapped.
      Returns:
      wrapped TimeStampRequestGenerator.
    • setCertReq

      public void setCertReq (boolean var1)
      Calls actual setCertReq method for the wrapped TimeStampRequestGenerator object.
      Specified by:
      setCertReq in interface ITimeStampRequestGenerator
      Parameters:
      var1 - the value to be set
    • setReqPolicy

      public void setReqPolicy (String reqPolicy)
      Calls actual setReqPolicy method for the wrapped TimeStampRequestGenerator object.
      Specified by:
      setReqPolicy in interface ITimeStampRequestGenerator
      Parameters:
      reqPolicy - the value to be set
    • generate

      public ITimeStampRequest generate (IASN1ObjectIdentifier objectIdentifier, byte[] imprint, BigInteger nonce)
      Calls actual generate method for the wrapped TimeStampRequestGenerator object.
      Specified by:
      generate in interface ITimeStampRequestGenerator
      Parameters:
      objectIdentifier - ASN1ObjectIdentifier wrapper
      imprint - byte array
      nonce - BigInteger
      Returns:
      ITimeStampRequest the wrapper for generated TimeStampRequest object.
    • 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