Class TimeStampTokenBCFips
java.lang.Object
com.itextpdf.bouncycastlefips.tsp.TimeStampTokenBCFips
- All Implemented Interfaces:
-
ITimeStampToken
Wrapper class for
TimeStampToken
.
-
Constructor Summary
ConstructorDescriptionTimeStampTokenBCFips
(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
-
TimeStampTokenBCFips
public TimeStampTokenBCFips(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:
-
TSPExceptionBCFips
-
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.
-