Package com.itextpdf.bouncycastle.tsp
Class TimeStampRequestGeneratorBC
java.lang.Object
com.itextpdf.bouncycastle.tsp.TimeStampRequestGeneratorBC
- All Implemented Interfaces:
-
ITimeStampRequestGenerator
Wrapper class for
TimeStampRequestGenerator
.
-
Constructor Summary
ConstructorDescriptionTimeStampRequestGeneratorBC
(org.bouncycastle.tsp.TimeStampRequestGenerator requestGenerator) Creates new wrapper instance forTimeStampRequestGenerator
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Indicates whether some other object is "equal to" this one.generate
(IASN1ObjectIdentifier objectIdentifier, byte[] imprint, BigInteger nonce) Calls actualgenerate
method for the wrapped TimeStampRequestGenerator object.org.bouncycastle.tsp.TimeStampRequestGenerator
Gets actual org.bouncycastle object being wrapped.int
hashCode()
Returns a hash code value based on the wrapped object.void
setCertReq
(boolean var1) Calls actualsetCertReq
method for the wrapped TimeStampRequestGenerator object.void
setReqPolicy
(String reqPolicy) Calls actualsetReqPolicy
method for the wrapped TimeStampRequestGenerator object.toString()
DelegatestoString
method call to the wrapped object.
-
Constructor Details
-
TimeStampRequestGeneratorBC
public TimeStampRequestGeneratorBC(org.bouncycastle.tsp.TimeStampRequestGenerator requestGenerator) Creates new wrapper instance forTimeStampRequestGenerator
.- 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 actualsetCertReq
method for the wrapped TimeStampRequestGenerator object.- Specified by:
-
setCertReq
in interfaceITimeStampRequestGenerator
- Parameters:
-
var1
- the value to be set
-
setReqPolicy
Calls actualsetReqPolicy
method for the wrapped TimeStampRequestGenerator object.- Specified by:
-
setReqPolicy
in interfaceITimeStampRequestGenerator
- Parameters:
-
reqPolicy
- the value to be set
-
generate
public ITimeStampRequest generate(IASN1ObjectIdentifier objectIdentifier, byte[] imprint, BigInteger nonce) Calls actualgenerate
method for the wrapped TimeStampRequestGenerator object.- Specified by:
-
generate
in interfaceITimeStampRequestGenerator
- Parameters:
-
objectIdentifier
- ASN1ObjectIdentifier wrapper -
imprint
- byte array -
nonce
- BigInteger - Returns:
-
ITimeStampRequest
the wrapper for generated TimeStampRequest object.
-
equals
Indicates whether some other object is "equal to" this one. Compares wrapped objects. -
hashCode
public int hashCode()Returns a hash code value based on the wrapped object. -
toString
DelegatestoString
method call to the wrapped object.
-