Class TSPTimeStampService
java.lang.Object
org.apache.poi.poifs.crypt.dsig.services.TSPTimeStampService
- All Implemented Interfaces:
TimeStampService
,SignatureConfig.SignatureConfigurable
A TSP time-stamp service implementation.
- Author:
- Frank Cornelis
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.bouncycastle.asn1.ASN1ObjectIdentifier
mapDigestAlgoToOID
(HashAlgorithm digestAlgo) Maps the digest algorithm to corresponding OID value.void
setSignatureConfig
(SignatureConfig signatureConfig) byte[]
timeStamp
(byte[] data, RevocationData revocationData) Gives back the encoded time-stamp token for the given array of data bytes.
-
Constructor Details
-
TSPTimeStampService
public TSPTimeStampService()
-
-
Method Details
-
mapDigestAlgoToOID
Maps the digest algorithm to corresponding OID value. -
timeStamp
Description copied from interface:TimeStampService
Gives back the encoded time-stamp token for the given array of data bytes. We assume that the time-stamp token itself contains its full certificate chain required for proper validation.- Specified by:
timeStamp
in interfaceTimeStampService
- Parameters:
data
- the data to be time-stamped.revocationData
- the optional container that needs to be filled up with the revocation data used to validate the TSA certificate chain.- Returns:
- the DER encoded time-stamp token.
- Throws:
Exception
- in case something went wrong.
-
setSignatureConfig
- Specified by:
setSignatureConfig
in interfaceSignatureConfig.SignatureConfigurable
-