|
IAIK CMS/SMIME Toolkit API Documentation
Version 6.1 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectiaik.asn1.structures.AttributeValue
iaik.smime.attributes.SignatureTimeStampToken
public class SignatureTimeStampToken
The SignatureTimeStampToken attribute.
The X.509 Time-Stamp Protocol (TSP) (RFC 3161)
specifies the SignatureTimeStampToken attribute to be included as an unsigned attribute in
a SignerInfo to prove that the signature was created before a given
time.
SignatureTimeStampToken ::= TimeStampToken
id-contentType OBJECT IDENTIFIER ::= { iso(1) member-body(2)
us(840) rsadsi(113549) pkcs(1) pkcs9(9) smime(16) aa(2) 14 }
This class provides a generic implementation of the SignatureTimeStampToken attribute and treats
the TimeStampToken as general ASN.1 object only. A TSP protocol implementation (like
IAIK-TSP may be used
for parsing the ASN.1 TimeStampToken to get its TSTInfo values.
When creating a SignatureTimeStampToken attribute
the TimeStampToken has to be supplied as ASN1Object, e.g.:
ASN1Object asn1TST = ...; SignatureTimeStampToken timeStampToken = new SignatureTimeStampToken(asn1TST); // add the SignatureTimeStampToken as unsigned attribute to the SignerInfo: signerInfo.addUnsignedAttribute(new Attribute(timeStampToken));
SignerInfo| Field Summary | |
|---|---|
static iaik.asn1.ObjectID |
oid
The attributeType object identifier of the TimeStampToken attribute. |
| Constructor Summary | |
|---|---|
SignatureTimeStampToken()
Empty default constructor. |
|
SignatureTimeStampToken(iaik.asn1.ASN1Object obj)
Creates an TimeStampToken from its ASN.1 representation. |
|
| Method Summary | |
|---|---|
void |
decode(iaik.asn1.ASN1Object obj)
Decodes the given ASN.1 TimeStampToken object |
boolean |
equals(java.lang.Object obj)
Compares this TimeStampToken to the specified object. |
iaik.asn1.ObjectID |
getAttributeType()
Returns the OID identifying the TimeStampToken attribute type. |
int |
hashCode()
Returns a hashcode for this object. |
iaik.asn1.ASN1Object |
toASN1Object()
Returns this TimeStampToken as ASN1Object. |
java.lang.String |
toString()
Returns a string representation of this TimeStampToken. |
| Methods inherited from class iaik.asn1.structures.AttributeValue |
|---|
getName, multipleAllowed |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final iaik.asn1.ObjectID oid
| Constructor Detail |
|---|
public SignatureTimeStampToken()
public SignatureTimeStampToken(iaik.asn1.ASN1Object obj)
obj - the TimeStampToken as ASN1Object| Method Detail |
|---|
public boolean equals(java.lang.Object obj)
TimeStampToken to the specified object.
equals in class java.lang.Objectobj - the object to compare this TimeStampToken
against.
true, if the given object is equal to this
TimeStampToken,
false otherwisepublic int hashCode()
hashCode in class java.lang.Objectpublic void decode(iaik.asn1.ASN1Object obj)
obj - the TimeStampToken as ASN1Objectpublic iaik.asn1.ASN1Object toASN1Object()
public iaik.asn1.ObjectID getAttributeType()
getAttributeType in class iaik.asn1.structures.AttributeValuepublic java.lang.String toString()
toString in class iaik.asn1.structures.AttributeValue
|
IAIK CMS/SMIME Toolkit API Documentation
Version 6.1 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
|
v6.1 (c) 2002 IAIK, (c) 2003 - 2025 SIC |
|