public class InvalidityDateExtension extends Extension
The invalidity date is a non-critical CRL entry extension that provides the date on which it is known or suspected that the private key was compromised or that the certificate otherwise became 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. When a revocation is first posted by a CRL issuer in a CRL, the invalidity date may precede the date of issue of earlier CRLs, but the revocation date SHOULD NOT precede the date of issue of earlier CRLs. Whenever this information is available, CRL issuers are strongly encouraged to share it with CRL users.
The GeneralizedTime values included in this field MUST be expressed in Greenwich Mean Time (Zulu), and MUST be specified and interpreted as defined in section 4.1.2.5.2.
id-ce-invalidityDate OBJECT IDENTIFIER ::= { id-ce 24 }
invalidityDate ::= GeneralizedTime
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAME
Attribute name and Reason codes
|
critical, extensionId, extensionValue| Constructor and Description |
|---|
InvalidityDateExtension(boolean critical,
java.util.Date date)
Create a InvalidityDateExtension with the passed in date.
|
InvalidityDateExtension(java.lang.Boolean critical,
java.lang.Object value)
Create the extension from the passed DER encoded value of the same.
|
InvalidityDateExtension(java.util.Date date)
Create a InvalidityDateExtension with the passed in date.
|
| Modifier and Type | Method and Description |
|---|---|
void |
encode(com.tencent.kona.sun.security.util.DerOutputStream out)
Write the extension to the DerOutputStream.
|
java.util.Date |
getDate()
Get the Date value.
|
java.lang.String |
getName()
Return the name of this extension.
|
static InvalidityDateExtension |
toImpl(java.security.cert.Extension ext) |
java.lang.String |
toString()
Returns a printable representation of the Invalidity Date.
|
encode, equals, getExtensionId, getExtensionValue, getId, getValue, hashCode, isCritical, newExtensionpublic static final java.lang.String NAME
public InvalidityDateExtension(java.util.Date date)
date - the invalidity datepublic InvalidityDateExtension(boolean critical,
java.util.Date date)
critical - true if the extension is to be treated as critical.date - the invalidity date, cannot be null.public InvalidityDateExtension(java.lang.Boolean critical,
java.lang.Object value)
throws java.io.IOException
critical - true if the extension is to be treated as critical.value - an array of DER encoded bytes of the actual value.java.lang.ClassCastException - if value is not an array of bytesjava.io.IOException - on error.public java.util.Date getDate()
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String toString()
public void encode(com.tencent.kona.sun.security.util.DerOutputStream out)
public java.lang.String getName()
public static InvalidityDateExtension toImpl(java.security.cert.Extension ext) throws java.io.IOException
java.io.IOException