org.bouncycastle.tsp
Class TimeStampToken
java.lang.Object
|
+--org.bouncycastle.tsp.TimeStampToken
- public class TimeStampToken
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getTimeStampInfo
public TimeStampTokenInfo getTimeStampInfo()
getSID
public org.bouncycastle.cms.SignerId getSID()
getSignedAttributes
public org.bouncycastle.asn1.cms.AttributeTable getSignedAttributes()
getUnsignedAttributes
public org.bouncycastle.asn1.cms.AttributeTable getUnsignedAttributes()
getCertificatesAndCRLs
public org.bouncycastle.jce.cert.CertStore getCertificatesAndCRLs(java.lang.String type,
java.lang.String provider)
throws java.security.NoSuchAlgorithmException,
java.security.NoSuchProviderException,
org.bouncycastle.cms.CMSException
validate
public void validate(java.security.cert.X509Certificate cert,
java.lang.String provider)
throws TSPException,
TSPValidationException,
java.security.cert.CertificateExpiredException,
java.security.cert.CertificateNotYetValidException,
java.security.NoSuchProviderException
- Validate the time stamp token.
To be valid the token must be signed by the passed in certificate and
the certificate must be the one refered to by the SigningCertificate
attribute included in the the hashed attributes of the token. The
certifcate must also have the ExtendedKeyUsageExtension with only
KeyPurposeId.id_kp_timeStamping and have been valid at the time the
timestamp was created.
A successful call to validate means all the above are true.
toCMSSignedData
public org.bouncycastle.cms.CMSSignedData toCMSSignedData()
- Return the underlying CMSSignedData object.
- Returns:
- the underlying CMS structure.