public class InvalidityDate extends V3Extension
InvalidityDate Extension.
This CRL entry extension field indicates the date at which it is known or suspected that the private key was compromised or that the certificate should otherwise be considered invalid. This date may be earlier than the revocation date in the CRL entry, which is the date at which the CA processed the revocation.
The InvalidityDate OID is "2.5.29.24".
The ASN.1 definition of the InvalidityDate extension is specified
as follows:
date ::= GeneralizedTime
The date field specifies the date at which it is known or suspected that the private
key was compromised or that the certificate should otherwise be considered invalid.
This class provides several methods for getting (but not setting) the component
values of a InvalidityDate extension object.
Copyright 1998 Entrust Technologies Limited.
V3Extension,
X509Certificate| Modifier and Type | Field and Description |
|---|---|
static ObjectID |
oid
Deprecated.
|
critical| Constructor and Description |
|---|
InvalidityDate()
Deprecated.
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Date |
getDate()
Deprecated.
Returns the
date value of this InvalidityDate extension
specifying the date at which it is known or suspected that the private key was
compromised or that the certificate should otherwise be considered invalid. |
ObjectID |
getObjectID()
Deprecated.
Returns the object ID of this
InvalidityDate extension |
int |
hashCode()
Deprecated.
Returns a hashcode for this identity.
|
void |
init(ASN1Object obj)
Deprecated.
Inits this
InvalidityDate implementation with an ASN1Object
representing the value of this extension. |
void |
setDate(java.util.Date invalidity)
Deprecated.
Stores the
date value in this InvalidityDate extension
specifying the date at which it is known or suspected that the private key was
compromised or that the certificate should otherwise be considered invalid. |
ASN1Object |
toASN1Object()
Deprecated.
Returns the value of this
InvalidityDate extension as an ASN1Object. |
java.lang.String |
toString()
Deprecated.
Returns a string that represents the contents of this
InvalidityDate extension. |
getName, isCritical, setCriticalpublic static final ObjectID oid
public InvalidityDate()
Generating a new InvalidityDate extension is not supported.
This class is provided for compatibility with existing CRLs only.
public ObjectID getObjectID()
InvalidityDate extensiongetObjectID in class V3Extensionpublic void init(ASN1Object obj) throws X509ExtensionException
InvalidityDate implementation with an ASN1Object
representing the value of this extension.
The ASN1Object is the extensionValue from ASN.1 type "Extension" representing
the date value of this extension.
init in class V3Extensionobj - the extensionValue as an ASN1ObjectX509ExtensionException - if the extension could not be parsedpublic ASN1Object toASN1Object() throws X509ExtensionException
InvalidityDate extension as an ASN1Object.toASN1Object in class V3ExtensionX509ExtensionException - if the extension could not be createdpublic void setDate(java.util.Date invalidity)
date value in this InvalidityDate extension
specifying the date at which it is known or suspected that the private key was
compromised or that the certificate should otherwise be considered invalid.invalidity - the invalidity date value.public java.util.Date getDate()
date value of this InvalidityDate extension
specifying the date at which it is known or suspected that the private key was
compromised or that the certificate should otherwise be considered invalid.date value.public int hashCode()
hashCode in class V3Extensionpublic java.lang.String toString()
InvalidityDate extension.toString in class java.lang.Object