public class TSPTimeStampService extends Object implements TimeStampService
| Constructor and Description |
|---|
TSPTimeStampService() |
| Modifier and Type | Method and Description |
|---|---|
protected SignatureConfig.CRLEntry |
downloadCRL(SignatureConfig signatureConfig,
String url)
Convenience method to download a crl in an unsafe way, i.e.
|
org.bouncycastle.asn1.ASN1ObjectIdentifier |
mapDigestAlgoToOID(HashAlgorithm digestAlgo)
Maps the digest algorithm to corresponding OID value.
|
protected boolean |
matchCRLbyCN(SignatureConfig.CRLEntry other,
X509Certificate holder,
String url) |
protected boolean |
matchCRLbyUrl(SignatureConfig.CRLEntry other,
X509Certificate holder,
String url) |
protected List<byte[]> |
retrieveCRL(SignatureConfig signatureConfig,
X509Certificate holder)
Check if CRL is to be added, check cached CRLs in config and download if necessary.
|
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 Exception
TimeStampServicetimeStamp in interface TimeStampServicedata - 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.Exception - in case something went wrong.protected List<byte[]> retrieveCRL(SignatureConfig signatureConfig, X509Certificate holder) throws IOException
IOExceptionprotected boolean matchCRLbyUrl(SignatureConfig.CRLEntry other, X509Certificate holder, String url)
protected boolean matchCRLbyCN(SignatureConfig.CRLEntry other, X509Certificate holder, String url)
protected SignatureConfig.CRLEntry downloadCRL(SignatureConfig signatureConfig, String url)