Package com.itextpdf.bouncycastle.tsp
Class TimeStampResponseBC
java.lang.Object
com.itextpdf.bouncycastle.tsp.TimeStampResponseBC
- All Implemented Interfaces:
-
ITimeStampResponse
Wrapper class for
TimeStampResponse
.
-
Constructor Summary
ConstructorDescriptionTimeStampResponseBC
(org.bouncycastle.tsp.TimeStampResponse timeStampResponse) Creates new wrapper instance forTimeStampResponse
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Indicates whether some other object is "equal to" this one.byte[]
Calls actualgetEncoded
method for the wrapped TimeStampResponse object.Calls actualgetFailInfo
method for the wrapped TimeStampResponse object.Calls actualgetStatusString
method for the wrapped TimeStampResponse object.org.bouncycastle.tsp.TimeStampResponse
Gets actual org.bouncycastle object being wrapped.Calls actualgetTimeStampToken
method for the wrapped TimeStampResponse object.int
hashCode()
Returns a hash code value based on the wrapped object.toString()
DelegatestoString
method call to the wrapped object.void
validate
(ITimeStampRequest request) Calls actualvalidate
method for the wrapped TimeStampResponse object.
-
Constructor Details
-
TimeStampResponseBC
public TimeStampResponseBC(org.bouncycastle.tsp.TimeStampResponse timeStampResponse) Creates new wrapper instance forTimeStampResponse
.- Parameters:
-
timeStampResponse
-TimeStampResponse
to be wrapped
-
-
Method Details
-
getTimeStampResponse
public org.bouncycastle.tsp.TimeStampResponse getTimeStampResponse()Gets actual org.bouncycastle object being wrapped.- Returns:
-
wrapped
TimeStampResponse
.
-
validate
Calls actualvalidate
method for the wrapped TimeStampResponse object.- Specified by:
-
validate
in interfaceITimeStampResponse
- Parameters:
-
request
- TimeStampRequest wrapper - Throws:
-
TSPExceptionBC
-
getFailInfo
Calls actualgetFailInfo
method for the wrapped TimeStampResponse object.- Specified by:
-
getFailInfo
in interfaceITimeStampResponse
- Returns:
-
IPKIFailureInfo
the wrapper for the received PKIFailureInfo object.
-
getTimeStampToken
Calls actualgetTimeStampToken
method for the wrapped TimeStampResponse object.- Specified by:
-
getTimeStampToken
in interfaceITimeStampResponse
- Returns:
-
ITimeStampToken
the wrapper for the received TimeStampToken object.
-
getStatusString
Calls actualgetStatusString
method for the wrapped TimeStampResponse object.- Specified by:
-
getStatusString
in interfaceITimeStampResponse
- Returns:
- status string.
-
getEncoded
Calls actualgetEncoded
method for the wrapped TimeStampResponse object.- Specified by:
-
getEncoded
in interfaceITimeStampResponse
- Returns:
- the default encoding for the wrapped object.
- Throws:
-
IOException
- on encoding error.
-
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.
-