java.lang.Object | |
↳ | sun.security.x509.CertificateValidity |
This class defines the interval for which the certificate is valid.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | IDENT | Identifier for this attribute, to be used with the get, set, delete methods of Certificate, x509 type. | |||||||||
String | NAME | Sub attributes name for this CertAttrSet. | |||||||||
String | NOT_AFTER | ||||||||||
String | NOT_BEFORE |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Default constructor for the class.
| |||||||||||
The default constructor for this class for the specified interval.
| |||||||||||
Create the object, decoding the values from the passed DER stream.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Delete the attribute value.
| |||||||||||
Encode the CertificateValidity period in DER form to the stream.
| |||||||||||
Get the attribute value.
| |||||||||||
Return an enumeration of names of attributes existing within this
attribute.
| |||||||||||
Return the name of this attribute.
| |||||||||||
Set the attribute value.
| |||||||||||
Return the validity period as user readable string.
| |||||||||||
Verify that the current time is within the validity period.
| |||||||||||
Verify that the passed time is within the validity period.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Identifier for this attribute, to be used with the get, set, delete methods of Certificate, x509 type.
Sub attributes name for this CertAttrSet.
Default constructor for the class.
The default constructor for this class for the specified interval.
notBefore | the date and time before which the certificate is not valid. |
---|---|
notAfter | the date and time after which the certificate is not valid. |
Create the object, decoding the values from the passed DER stream.
in | the DerInputStream to read the CertificateValidity from. |
---|
IOException | on decoding errors. |
---|
Encode the CertificateValidity period in DER form to the stream.
out | the OutputStream to marshal the contents to. |
---|
IOException | on errors. |
---|
Return an enumeration of names of attributes existing within this attribute.
Set the attribute value.
name | the name of the attribute (e.g. "x509.info.key") |
---|---|
obj | the attribute object. |
IOException |
---|
Return the validity period as user readable string.
Verify that the current time is within the validity period.
CertificateExpiredException | if the certificate has expired. |
---|---|
CertificateNotYetValidException | if the certificate is not yet valid. |
Verify that the passed time is within the validity period.
now | the Date against which to compare the validity period. |
---|
CertificateExpiredException | if the certificate has expired
with respect to the Date supplied. |
---|---|
CertificateNotYetValidException | if the certificate is not
yet valid with respect to the Date supplied.
|