Package com.itextpdf.bouncycastle.tsp
Class TimeStampRequestBC
- java.lang.Object
-
- com.itextpdf.bouncycastle.tsp.TimeStampRequestBC
-
- All Implemented Interfaces:
ITimeStampRequest
public class TimeStampRequestBC extends java.lang.Object implements ITimeStampRequest
Wrapper class forTimeStampRequest.
-
-
Field Summary
Fields Modifier and Type Field Description private org.bouncycastle.tsp.TimeStampRequesttimeStampRequest
-
Constructor Summary
Constructors Constructor Description TimeStampRequestBC(org.bouncycastle.tsp.TimeStampRequest timeStampRequest)Creates new wrapper instance forTimeStampRequest.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)Indicates whether some other object is "equal to" this one.byte[]getEncoded()Calls actualgetEncodedmethod for wrapped TimeStampRequest object.java.math.BigIntegergetNonce()Calls actualgetNoncemethod for wrapped TimeStampRequest object.org.bouncycastle.tsp.TimeStampRequestgetTimeStampRequest()Gets actual org.bouncycastle object being wrapped.inthashCode()Returns a hash code value based on the wrapped object.java.lang.StringtoString()DelegatestoStringmethod call to the wrapped object.
-
-
-
Method Detail
-
getTimeStampRequest
public org.bouncycastle.tsp.TimeStampRequest getTimeStampRequest()
Gets actual org.bouncycastle object being wrapped.- Returns:
- wrapped
TimeStampRequest.
-
getEncoded
public byte[] getEncoded() throws java.io.IOExceptionCalls actualgetEncodedmethod for wrapped TimeStampRequest object.- Specified by:
getEncodedin interfaceITimeStampRequest- Returns:
- the default encoding for the wrapped object.
- Throws:
java.io.IOException- on encoding error.
-
getNonce
public java.math.BigInteger getNonce()
Calls actualgetNoncemethod for wrapped TimeStampRequest object.- Specified by:
getNoncein interfaceITimeStampRequest- Returns:
- nonce value.
-
equals
public boolean equals(java.lang.Object o)
Indicates whether some other object is "equal to" this one. Compares wrapped objects.- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
Returns a hash code value based on the wrapped object.- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
DelegatestoStringmethod call to the wrapped object.- Overrides:
toStringin classjava.lang.Object
-
-