|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.security.pkcsutil.PKCSDerObject | +--com.ibm.security.pkcs9.PKCS9DerObject | +--com.ibm.security.pkcs9.SigningTime
Implements the ASN.1 SigningTime attribute type.
The SigningTime object indicates when the signer reportedly performed the signing process. This object is is used with the SignedData object as a signed attribute.
A SigningTime attribute must have a single attribute value.
SigningTime objects are immutable; they cannot be changed once created.
Fields inherited from class com.ibm.security.pkcsutil.PKCSDerObject |
provider |
Constructor Summary | |
SigningTime(byte[] der)
Create a SigningTime object with a DER byte array. |
|
SigningTime(byte[] der,
String provider)
Create a SigningTime object with a DER byte array. |
|
SigningTime(Date date)
Create a SigningTime object with a Date object. |
|
SigningTime(Date date,
boolean bUTCTime)
Create a SigningTime object with a Date object and flag to indicate if the date should be encoded as UTCTime or GeneralizedTime. |
|
SigningTime(Date date,
boolean bUTCTime,
String provider)
Create a SigningTime object with a Date object and flag to indicate if the date should be encoded as UTCTime or GeneralizedTime. |
|
SigningTime(Date date,
String provider)
Create a SigningTime object with a Date object. |
|
SigningTime(String filename,
boolean base64)
Create a SigningTime with the filename of the DER-encoded or BASE64-encoded object. |
|
SigningTime(String filename,
boolean base64,
String provider)
Create a SigningTime with the filename of the DER-encoded or BASE64-encoded object. |
Method Summary | |
Object |
clone()
Creates a clone of this SigningTime object. |
protected void |
decode(com.ibm.security.pkcs9.DerValue encoding)
Initializes a SigningTime object from a DerValue. |
void |
encode(OutputStream os)
Encodes this object to an OutputStream. |
boolean |
equals(Object obj)
Determines if this SigningTime object is equivalent to the input object. |
String |
getAttributeName()
Returns a String indicating the name of the attribute. |
Date |
getDate()
Returns a copy of the date of this SigningTime object. |
ObjectIdentifier |
getObjectIdentifier()
Returns the ObjectIdentifer for the SigningTime attribute. |
Object |
getValue()
Calls the getDate method. |
boolean |
isSingleValued()
Returns true. |
boolean |
isTagValid(byte tag)
Returns a boolean indicating if the tag is valid for this object. |
String |
toString()
Returns a string representation of this SigningTime object. |
Methods inherited from class com.ibm.security.pkcs9.PKCS9DerObject |
getName,
getOID,
getPKCSAttribute |
Methods inherited from class com.ibm.security.pkcsutil.PKCSDerObject |
decode,
decode,
encode,
hashCode,
read,
readBASE64,
write,
write,
writeBASE64 |
Methods inherited from class java.lang.Object |
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public SigningTime(byte[] der) throws IOException
der
- a DER byte array of a SigningTime object.public SigningTime(byte[] der, String provider) throws IOException
der
- a DER byte array of a SigningTime object.provider
- the provider to be used.public SigningTime(Date date)
date
- a Date objectpublic SigningTime(Date date, String provider)
date
- a Date objectprovider
- the provider to be usedpublic SigningTime(Date date, boolean bUTCTime)
date
- a Date objectbUTCTime
- true if date should be encoded as UTCTime,
false if date should be stored as GeneralizedTime.public SigningTime(Date date, boolean bUTCTime, String provider)
date
- a Date objectbUTCTime
- true if date should be encoded as UTCTime,
false if date should be stored as GeneralizedTime.provider
- the provider to be usedpublic SigningTime(String filename, boolean base64) throws IOException
filename
- name of the DER-encoded or base64-encoded objectbase64
- true if BASE64-encoded, false if DER-encodedpublic SigningTime(String filename, boolean base64, String provider) throws IOException
filename
- name of the DER-encoded or base64-encoded objectbase64
- true if BASE64-encoded, false if DER-encodedprovider
- the provider to be usedMethod Detail |
public Object clone()
public boolean equals(Object obj)
other
- the object to compare this one to.public ObjectIdentifier getObjectIdentifier()
public void encode(OutputStream os) throws IOException
os
- the OutputStream to write the encoded data to.public Date getDate()
public Object getValue()
public boolean isTagValid(byte tag)
public boolean isSingleValued()
public String getAttributeName()
public String toString()
protected void decode(com.ibm.security.pkcs9.DerValue encoding) throws IOException
encoding
- a DER-encoded SigningTime object.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |