Interface ITimeStampToken
- All Known Implementing Classes:
-
TimeStampTokenBC
,TimeStampTokenBCFips
public interface ITimeStampToken
This interface represents the wrapper for TimeStampToken that provides the ability to switch between bouncy-castle and bouncy-castle FIPS implementations.
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
Calls actualgetEncoded
method for the wrapped TimeStampToken object.Calls actualgetTimeStampInfo
method for the wrapped TimeStampToken object.void
validate
(ISignerInformationVerifier verifier) Calls actualvalidate
method for the wrapped TimeStampToken object.
-
Method Details
-
getTimeStampInfo
ITimeStampTokenInfo getTimeStampInfo()Calls actualgetTimeStampInfo
method for the wrapped TimeStampToken object.- Returns:
-
ITimeStampTokenInfo
the wrapper for the received TimeStampInfo object.
-
validate
Calls actualvalidate
method for the wrapped TimeStampToken object.- Parameters:
-
verifier
- SignerInformationVerifier wrapper - Throws:
-
AbstractTSPException
- TSPException wrapper.
-
getEncoded
Calls actualgetEncoded
method for the wrapped TimeStampToken object.- Returns:
- the default encoding for the wrapped object.
- Throws:
-
IOException
- on encoding error.
-