|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.digt.trusted.tsp.TimeStampToken
public class TimeStampToken
Method Summary | |
---|---|
java.security.cert.CertStore |
getCertificatesAndCRLs(java.lang.String type,
java.lang.String provider)
|
byte[] |
getEncoded()
Return a ASN.1 encoded byte stream representing the encoded object. |
SignerId |
getSID()
|
AttributeTable |
getSignedAttributes()
|
TimeStampTokenInfo |
getTimeStampInfo()
|
AttributeTable |
getUnsignedAttributes()
|
CMSSignedData |
toCMSSignedData()
Return the underlying CMSSignedData object. |
void |
validate(java.security.cert.X509Certificate cert,
java.lang.String provider)
Validate the time stamp token. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public TimeStampTokenInfo getTimeStampInfo()
public SignerId getSID()
public AttributeTable getSignedAttributes()
public AttributeTable getUnsignedAttributes()
public java.security.cert.CertStore getCertificatesAndCRLs(java.lang.String type, java.lang.String provider) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException, CMSException
java.security.NoSuchAlgorithmException
java.security.NoSuchProviderException
CMSException
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
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.
TSPException
TSPValidationException
java.security.cert.CertificateExpiredException
java.security.cert.CertificateNotYetValidException
java.security.NoSuchProviderException
public CMSSignedData toCMSSignedData()
public byte[] getEncoded() throws java.io.IOException
java.io.IOException
- if encoding fails.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |