Package com.itextpdf.bouncycastle.tsp
Class TimeStampTokenBC
- java.lang.Object
-
- com.itextpdf.bouncycastle.tsp.TimeStampTokenBC
-
- All Implemented Interfaces:
ITimeStampToken
public class TimeStampTokenBC extends java.lang.Object implements ITimeStampToken
Wrapper class forTimeStampToken
.
-
-
Field Summary
Fields Modifier and Type Field Description private org.bouncycastle.tsp.TimeStampToken
timeStampToken
-
Constructor Summary
Constructors Constructor Description TimeStampTokenBC(org.bouncycastle.tsp.TimeStampToken timeStampToken)
Creates new wrapper instance forTimeStampToken
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
Indicates whether some other object is "equal to" this one.byte[]
getEncoded()
Calls actualgetEncoded
method for the wrapped TimeStampToken object.ITimeStampTokenInfo
getTimeStampInfo()
Calls actualgetTimeStampInfo
method for the wrapped TimeStampToken object.org.bouncycastle.tsp.TimeStampToken
getTimeStampToken()
Gets actual org.bouncycastle object being wrapped.int
hashCode()
Returns a hash code value based on the wrapped object.java.lang.String
toString()
DelegatestoString
method call to the wrapped object.void
validate(ISignerInformationVerifier verifier)
Calls actualvalidate
method for the wrapped TimeStampToken object.
-
-
-
Method Detail
-
getTimeStampToken
public org.bouncycastle.tsp.TimeStampToken getTimeStampToken()
Gets actual org.bouncycastle object being wrapped.- Returns:
- wrapped
TimeStampToken
.
-
getTimeStampInfo
public ITimeStampTokenInfo getTimeStampInfo()
Calls actualgetTimeStampInfo
method for the wrapped TimeStampToken object.- Specified by:
getTimeStampInfo
in interfaceITimeStampToken
- Returns:
ITimeStampTokenInfo
the wrapper for the received TimeStampInfo object.
-
getEncoded
public byte[] getEncoded() throws java.io.IOException
Calls actualgetEncoded
method for the wrapped TimeStampToken object.- Specified by:
getEncoded
in interfaceITimeStampToken
- Returns:
- the default encoding for the wrapped object.
- Throws:
java.io.IOException
- on encoding error.
-
validate
public void validate(ISignerInformationVerifier verifier) throws TSPExceptionBC
Calls actualvalidate
method for the wrapped TimeStampToken object.- Specified by:
validate
in interfaceITimeStampToken
- Parameters:
verifier
- SignerInformationVerifier wrapper- Throws:
TSPExceptionBC
-
equals
public boolean equals(java.lang.Object o)
Indicates whether some other object is "equal to" this one. Compares wrapped objects.- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
Returns a hash code value based on the wrapped object.- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
DelegatestoString
method call to the wrapped object.- Overrides:
toString
in classjava.lang.Object
-
-