public class TSPUtil
extends java.lang.Object
Constructor and Description |
---|
TSPUtil() |
Modifier and Type | Method and Description |
---|---|
static java.util.Collection |
getSignatureTimestamps(org.bouncycastle.cms.SignerInformation signerInfo,
org.bouncycastle.operator.DigestCalculatorProvider digCalcProvider)
Fetches the signature time-stamp attributes from a SignerInformation object.
|
static java.util.Collection |
getSignatureTimestamps(org.bouncycastle.cms.SignerInformation signerInfo,
java.security.Provider provider)
Deprecated.
use getSignatureTimestamps(SignerInformation, DigestCalculatorProvider)
|
static void |
validateCertificate(java.security.cert.X509Certificate cert)
Validate the passed in certificate as being of the correct type to be used
for time stamping.
|
static void |
validateCertificate(org.bouncycastle.cert.X509CertificateHolder cert)
Validate the passed in certificate as being of the correct type to be used
for time stamping.
|
public static java.util.Collection getSignatureTimestamps(org.bouncycastle.cms.SignerInformation signerInfo, java.security.Provider provider) throws TSPValidationException
signerInfo
- a SignerInformation to search for time-stampsprovider
- an optional provider to use to create MessageDigest instancesTSPValidationException
public static java.util.Collection getSignatureTimestamps(org.bouncycastle.cms.SignerInformation signerInfo, org.bouncycastle.operator.DigestCalculatorProvider digCalcProvider) throws TSPValidationException
signerInfo
- a SignerInformation to search for time-stampsdigCalcProvider
- provider for digest calculatorsTSPValidationException
public static void validateCertificate(java.security.cert.X509Certificate cert) throws TSPValidationException
cert
- the certificate of interest.TSPValidationException
- if the certicate fails on one of the check points.public static void validateCertificate(org.bouncycastle.cert.X509CertificateHolder cert) throws TSPValidationException
cert
- the certificate of interest.TSPValidationException
- if the certicate fails on one of the check points.