DerEncoder
| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| private final Date | |
| private final Date | |
| pack-priv static final long | YR_2050
YR_2050 date and time set to Jan01 00:00 2050 GMT |
| Access | Constructor and Description |
|---|---|
| public | CertificateValidity(Date
the date and time before which the certificate
is not valid notBefore, Date the date and time after which the certificate is
not valid notAfter)The constructor for this class for the specified interval. |
| public | CertificateValidity(DerInputStream
the DerInputStream to read the CertificateValidity from in)Create the object, decoding the values from the passed DER stream. |
| Modifier and Type | Method and Description |
|---|---|
| public void | encode(DerOutputStream
the DerOutputStream to marshal the contents to. out)Implements sun. Encode the CertificateValidity period in DER form to the stream. |
| public Date | |
| public Date | |
| public String | |
| public void | |
| public void |
| NAME | back to summary |
|---|---|
| public static final String NAME | |
| notAfter | back to summary |
|---|---|
| private final Date notAfter | |
| notBefore | back to summary |
|---|---|
| private final Date notBefore | |
| YR_2050 | back to summary |
|---|---|
| pack-priv static final long YR_2050 YR_2050 date and time set to Jan01 00:00 2050 GMT | |
| CertificateValidity | back to summary |
|---|---|
| public CertificateValidity(Date notBefore, Date notAfter) The constructor for this class for the specified interval. | |
| CertificateValidity | back to summary |
|---|---|
| public CertificateValidity(DerInputStream in) throws IOException Create the object, decoding the values from the passed DER stream.
| |
| encode | back to summary |
|---|---|
| public void encode(DerOutputStream out) Implements sun. Encode the CertificateValidity period in DER form to the stream.
| |
| getNotAfter | back to summary |
|---|---|
| public Date getNotAfter() | |
| getNotBefore | back to summary |
|---|---|
| public Date getNotBefore() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Return the validity period as user readable string. | |
| valid | back to summary |
|---|---|
| public void valid() throws CertificateNotYetValidException, CertificateExpiredException Verify that the current time is within the validity period.
| |
| valid | back to summary |
|---|---|
| public void valid(Date now) throws CertificateNotYetValidException, CertificateExpiredException Verify that the passed time is within the validity period.
| |