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.
(将摘要算法映射到相应的 OID 值。)
|
byte[] |
timeStamp(SignatureInfo signatureInfo, 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(SignatureInfo signatureInfo, byte[] data, RevocationData revocationData) throws java.lang.Exception
TimeStampService
timeStamp
in interface
TimeStampService
(接口 TimeStampService 中的时间戳)
data
- the data to be time-stamped.
(data - 要加时间戳的数据。)
revocationData
- the optional container that needs to be filled up with the revocation data used to validate the TSA certificate chain.
(revocationData - 需要填充用于验证 TSA 证书链的撤销数据的可选容器。)
java.lang.Exception
- in case something went wrong.
(java.lang.Exception - 以防出现问题。)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.