public class InvalidityDateExtension extends Extension implements CertAttrSet
This CRL entry extension, if present, provides the date on which it is known or suspected that the private key was compromised or that the certificate otherwise became invalid. Invalidity date may be earlier than the revocation date.
Extension
,
CertAttrSet
,
Serialized FormModifier and Type | Field and Description |
---|---|
static java.lang.String |
INVALIDITY_DATE |
static java.lang.String |
NAME
Attribute name.
|
static java.lang.String |
OID
The Object Identifier for this extension.
|
critical, extensionId, extensionValue
Constructor and Description |
---|
InvalidityDateExtension(java.lang.Boolean critical,
java.util.Date dateOfInvalidity)
Create a InvalidityDateExtension with the 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 dateOfInvalidity)
Create a InvalidityDateExtension with the date.
|
Modifier and Type | Method and Description |
---|---|
void |
decode(java.io.InputStream in)
Decode the extension from the InputStream.
|
void |
delete(java.lang.String name)
Delete the attribute value.
|
void |
encode(java.io.OutputStream out)
Write the extension to the DerOutputStream.
|
java.lang.Object |
get(java.lang.String name)
Get the attribute value.
|
java.util.Enumeration<java.lang.String> |
getAttributeNames()
Return an enumeration of names of attributes existing within this
attribute.
|
java.util.Date |
getInvalidityDate()
Get the invalidity date.
|
java.lang.String |
getName()
Return the name of this attribute.
|
void |
set(java.lang.String name,
java.lang.Object obj)
Set the attribute value.
|
java.lang.String |
toString()
Returns a printable representation of the InvalidityDateExtension.
|
clearValue, encode, getExtensionId, getExtensionValue, isCritical, setCritical, setExtensionId, setExtensionValue
public static final java.lang.String NAME
public static final java.lang.String INVALIDITY_DATE
public static final java.lang.String OID
public InvalidityDateExtension(java.util.Date dateOfInvalidity) throws java.io.IOException
dateOfInvalidity
- the value to be set for the extension.java.io.IOException
public InvalidityDateExtension(java.lang.Boolean critical, java.util.Date dateOfInvalidity) throws java.io.IOException
critical
- true if the extension is to be treated as critical.dateOfInvalidity
- the value to be set for the extension.java.io.IOException
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
- Array of DER encoded bytes of the actual value.java.io.IOException
- on error.public java.util.Date getInvalidityDate()
public void set(java.lang.String name, java.lang.Object obj) throws java.io.IOException
set
in interface CertAttrSet
name
- the name of the attribute (e.g. "x509.info.key")obj
- the attribute object.java.io.IOException
- on other errors.public java.lang.Object get(java.lang.String name) throws java.io.IOException
get
in interface CertAttrSet
name
- the name of the attribute to return.java.io.IOException
- on other errors.public void delete(java.lang.String name) throws java.io.IOException
delete
in interface CertAttrSet
name
- the name of the attribute to delete.java.io.IOException
- on other errors.public java.lang.String toString()
toString
in interface CertAttrSet
toString
in class Extension
public void decode(java.io.InputStream in) throws java.io.IOException
decode
in interface CertAttrSet
in
- the InputStream to unmarshal the contents from.java.io.IOException
- on decoding or validity errors.public void encode(java.io.OutputStream out) throws java.io.IOException
encode
in interface CertAttrSet
out
- the DerOutputStream to write the extension to.java.io.IOException
- on encoding errors.public java.util.Enumeration<java.lang.String> getAttributeNames()
getAttributeNames
in interface CertAttrSet
public java.lang.String getName()
getName
in interface CertAttrSet