Package com.itextpdf.bouncycastle.tsp
Class TimeStampResponseBC
- java.lang.Object
-
- com.itextpdf.bouncycastle.tsp.TimeStampResponseBC
-
- All Implemented Interfaces:
ITimeStampResponse
public class TimeStampResponseBC extends java.lang.Object implements ITimeStampResponse
Wrapper class forTimeStampResponse
.
-
-
Field Summary
Fields Modifier and Type Field Description private org.bouncycastle.tsp.TimeStampResponse
timeStampResponse
-
Constructor Summary
Constructors Constructor Description TimeStampResponseBC(org.bouncycastle.tsp.TimeStampResponse timeStampResponse)
Creates new wrapper instance forTimeStampResponse
.
-
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 TimeStampResponse object.IPKIFailureInfo
getFailInfo()
Calls actualgetFailInfo
method for the wrapped TimeStampResponse object.java.lang.String
getStatusString()
Calls actualgetStatusString
method for the wrapped TimeStampResponse object.org.bouncycastle.tsp.TimeStampResponse
getTimeStampResponse()
Gets actual org.bouncycastle object being wrapped.ITimeStampToken
getTimeStampToken()
Calls actualgetTimeStampToken
method for the wrapped TimeStampResponse object.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(ITimeStampRequest request)
Calls actualvalidate
method for the wrapped TimeStampResponse object.
-
-
-
Method Detail
-
getTimeStampResponse
public org.bouncycastle.tsp.TimeStampResponse getTimeStampResponse()
Gets actual org.bouncycastle object being wrapped.- Returns:
- wrapped
TimeStampResponse
.
-
validate
public void validate(ITimeStampRequest request) throws TSPExceptionBC
Calls actualvalidate
method for the wrapped TimeStampResponse object.- Specified by:
validate
in interfaceITimeStampResponse
- Parameters:
request
- TimeStampRequest wrapper- Throws:
TSPExceptionBC
-
getFailInfo
public IPKIFailureInfo getFailInfo()
Calls actualgetFailInfo
method for the wrapped TimeStampResponse object.- Specified by:
getFailInfo
in interfaceITimeStampResponse
- Returns:
IPKIFailureInfo
the wrapper for the received PKIFailureInfo object.
-
getTimeStampToken
public ITimeStampToken getTimeStampToken()
Calls actualgetTimeStampToken
method for the wrapped TimeStampResponse object.- Specified by:
getTimeStampToken
in interfaceITimeStampResponse
- Returns:
ITimeStampToken
the wrapper for the received TimeStampToken object.
-
getStatusString
public java.lang.String getStatusString()
Calls actualgetStatusString
method for the wrapped TimeStampResponse object.- Specified by:
getStatusString
in interfaceITimeStampResponse
- Returns:
- status string.
-
getEncoded
public byte[] getEncoded() throws java.io.IOException
Calls actualgetEncoded
method for the wrapped TimeStampResponse object.- Specified by:
getEncoded
in interfaceITimeStampResponse
- 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
-
-