APIdia Launch Partner
Top Description Fields Constructors Methods
sun.security.x509

public Class InvalidityDateExtension

extends Extension
Class Inheritance
Imports
java.io.IOException, java.util.Date, sun.security.util.*

From RFC 5280:

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
Author
Sean Mullan

Field Summary

Modifier and TypeField and Description
private Date
public static final String
NAME

Attribute name and Reason codes

Inherited from sun.security.x509.Extension:
criticalextensionIdextensionValue

Constructor Summary

AccessConstructor and Description
public
InvalidityDateExtension(Date
the invalidity date
date
)

Create a InvalidityDateExtension with the passed in date.

public
InvalidityDateExtension(boolean
true if the extension is to be treated as critical.
critical
,
Date
the invalidity date, cannot be null.
date
)

Create a InvalidityDateExtension with the passed in date.

public
InvalidityDateExtension(Boolean
true if the extension is to be treated as critical.
critical
,
Object
an array of DER encoded bytes of the actual value.
value
)

Create the extension from the passed DER encoded value of the same.

Method Summary

Modifier and TypeMethod and Description
public void
encode(DerOutputStream
the DerOutputStream to write the extension to
out
)

Overrides sun.security.x509.Extension.encode.

Implements sun.security.util.DerEncoder.encode.

Write the extension to the DerOutputStream.

private void
public Date
getDate()

Get the Date value.

public String
getName()

Overrides sun.security.x509.Extension.getName.

Return the name of this extension.

public static InvalidityDateExtension
public String
toString()

Overrides sun.security.x509.Extension.toString.

Returns a printable representation of the Invalidity Date.

Inherited from sun.security.x509.Extension:
encodeequalsgetExtensionIdgetExtensionValuegetIdgetValuehashCodeisCriticalnewExtension

Field Detail

dateback to summary
private Date date
NAMEback to summary
public static final String NAME

Attribute name and Reason codes

Constructor Detail

InvalidityDateExtensionback to summary
public InvalidityDateExtension(Date date)

Create a InvalidityDateExtension with the passed in date. Criticality automatically set to false.

Parameters
date:Date

the invalidity date

InvalidityDateExtensionback to summary
public InvalidityDateExtension(boolean critical, Date date)

Create a InvalidityDateExtension with the passed in date.

Parameters
critical:boolean

true if the extension is to be treated as critical.

date:Date

the invalidity date, cannot be null.

InvalidityDateExtensionback to summary
public InvalidityDateExtension(Boolean critical, Object value) throws IOException

Create the extension from the passed DER encoded value of the same.

Parameters
critical:Boolean

true if the extension is to be treated as critical.

value:Object

an array of DER encoded bytes of the actual value.

Exceptions
IOException:
on error.
ClassCastException:
if value is not an array of bytes

Method Detail

encodeback to summary
public void encode(DerOutputStream out)

Overrides sun.security.x509.Extension.encode.

Implements sun.security.util.DerEncoder.encode.

Write the extension to the DerOutputStream.

Parameters
out:DerOutputStream

the DerOutputStream to write the extension to

Annotations
@Override
encodeThisback to summary
private void encodeThis()
getDateback to summary
public Date getDate() throws IOException

Get the Date value.

getNameback to summary
public String getName()

Overrides sun.security.x509.Extension.getName.

Return the name of this extension.

Annotations
@Override
toImplback to summary
public static InvalidityDateExtension toImpl(Extension ext) throws IOException
toStringback to summary
public String toString()

Overrides sun.security.x509.Extension.toString.

Returns a printable representation of the Invalidity Date.