public class TSPTimeStampService extends java.lang.Object implements TimeStampService
Constructor and Description |
---|
TSPTimeStampService() |
Modifier and Type | Method and Description |
---|---|
org.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.
|
public org.bouncycastle.asn1.ASN1ObjectIdentifier mapDigestAlgoToOID(HashAlgorithm digestAlgo)
public byte[] timeStamp(byte[] data, RevocationData revocationData) throws java.lang.Exception
TimeStampService
timeStamp
in interface TimeStampService
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.java.lang.Exception
- in case something went wrong.public void setSignatureConfig(SignatureConfig signatureConfig)
setSignatureConfig
in interface SignatureConfig.SignatureConfigurable
Copyright 2020 The Apache Software Foundation or its licensors, as applicable.