Package com.itextpdf.bouncycastle.tsp
Class TimeStampTokenInfoBC
- java.lang.Object
-
- com.itextpdf.bouncycastle.tsp.TimeStampTokenInfoBC
-
- All Implemented Interfaces:
ITimeStampTokenInfo
public class TimeStampTokenInfoBC extends java.lang.Object implements ITimeStampTokenInfo
Wrapper class forTimeStampTokenInfo
.
-
-
Field Summary
Fields Modifier and Type Field Description private org.bouncycastle.tsp.TimeStampTokenInfo
timeStampTokenInfo
-
Constructor Summary
Constructors Constructor Description TimeStampTokenInfoBC(org.bouncycastle.tsp.TimeStampTokenInfo timeStampTokenInfo)
Creates new wrapper instance forTimeStampTokenInfo
.
-
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 TimeStampTokenInfo object.java.util.Date
getGenTime()
Calls actualgetGenTime
method for the wrapped TimeStampTokenInfo object.IAlgorithmIdentifier
getHashAlgorithm()
Calls actualgetHashAlgorithm
method for the wrapped TimeStampTokenInfo object.org.bouncycastle.tsp.TimeStampTokenInfo
getTimeStampTokenInfo()
Gets actual org.bouncycastle object being wrapped.int
hashCode()
Returns a hash code value based on the wrapped object.ITSTInfo
toASN1Structure()
Calls actualtoASN1Structure
method for the wrapped TimeStampTokenInfo object.java.lang.String
toString()
DelegatestoString
method call to the wrapped object.
-
-
-
Method Detail
-
getTimeStampTokenInfo
public org.bouncycastle.tsp.TimeStampTokenInfo getTimeStampTokenInfo()
Gets actual org.bouncycastle object being wrapped.- Returns:
- wrapped
TimeStampTokenInfo
.
-
getHashAlgorithm
public IAlgorithmIdentifier getHashAlgorithm()
Calls actualgetHashAlgorithm
method for the wrapped TimeStampTokenInfo object.- Specified by:
getHashAlgorithm
in interfaceITimeStampTokenInfo
- Returns:
IAlgorithmIdentifier
the wrapper for the received AlgorithmIdentifier object.
-
toASN1Structure
public ITSTInfo toASN1Structure()
Calls actualtoASN1Structure
method for the wrapped TimeStampTokenInfo object.- Specified by:
toASN1Structure
in interfaceITimeStampTokenInfo
- Returns:
ITSTInfo
TSTInfo wrapper.
-
getGenTime
public java.util.Date getGenTime()
Calls actualgetGenTime
method for the wrapped TimeStampTokenInfo object.- Specified by:
getGenTime
in interfaceITimeStampTokenInfo
- Returns:
Date
the received genTime.
-
getEncoded
public byte[] getEncoded() throws java.io.IOException
Calls actualgetEncoded
method for the wrapped TimeStampTokenInfo object.- Specified by:
getEncoded
in interfaceITimeStampTokenInfo
- Returns:
- the default encoding for the wrapped object.
- Throws:
java.io.IOException
- on encoding error.
-
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
-
-