Package com.itextpdf.bouncycastle.tsp
Class TimeStampTokenBC
java.lang.Object
com.itextpdf.bouncycastle.tsp.TimeStampTokenBC
- All Implemented Interfaces:
-
ITimeStampToken
Wrapper class for
TimeStampToken
.
-
Constructor Summary
ConstructorDescriptionTimeStampTokenBC
(org.bouncycastle.tsp.TimeStampToken timeStampToken) Creates new wrapper instance forTimeStampToken
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Indicates whether some other object is "equal to" this one.byte[]
Calls actualgetEncoded
method for the wrapped TimeStampToken object.Calls actualgetTimeStampInfo
method for the wrapped TimeStampToken object.org.bouncycastle.tsp.TimeStampToken
Gets actual org.bouncycastle object being wrapped.int
hashCode()
Returns a hash code value based on the wrapped object.toString()
DelegatestoString
method call to the wrapped object.void
validate
(ISignerInformationVerifier verifier) Calls actualvalidate
method for the wrapped TimeStampToken object.
-
Constructor Details
-
TimeStampTokenBC
public TimeStampTokenBC(org.bouncycastle.tsp.TimeStampToken timeStampToken) Creates new wrapper instance forTimeStampToken
.- Parameters:
-
timeStampToken
-TimeStampToken
to be wrapped
-
-
Method Details
-
getTimeStampToken
public org.bouncycastle.tsp.TimeStampToken getTimeStampToken()Gets actual org.bouncycastle object being wrapped.- Returns:
-
wrapped
TimeStampToken
.
-
getTimeStampInfo
Calls actualgetTimeStampInfo
method for the wrapped TimeStampToken object.- Specified by:
-
getTimeStampInfo
in interfaceITimeStampToken
- Returns:
-
ITimeStampTokenInfo
the wrapper for the received TimeStampInfo object.
-
getEncoded
Calls actualgetEncoded
method for the wrapped TimeStampToken object.- Specified by:
-
getEncoded
in interfaceITimeStampToken
- Returns:
- the default encoding for the wrapped object.
- Throws:
-
IOException
- on encoding error.
-
validate
Calls actualvalidate
method for the wrapped TimeStampToken object.- Specified by:
-
validate
in interfaceITimeStampToken
- Parameters:
-
verifier
- SignerInformationVerifier wrapper - Throws:
-
TSPExceptionBC
-
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.
-