The Private Key Usage Period extension allows the certificate issuer to specify a different validity period for the private key than the certificate. This extension is intended for use with digital signature keys. This extension consists of two optional components notBefore and notAfter. The private key associated with the certificate should not be used to sign objects before or after the times specified by the two components, respectively.
PrivateKeyUsagePeriod ::= SEQUENCE {
notBefore [0] GeneralizedTime OPTIONAL,
notAfter [1] GeneralizedTime OPTIONAL }
Extension
| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| private Date | |
| private Date | |
| private static final byte | |
| private static final byte |
| Access | Constructor and Description |
|---|---|
| public | PrivateKeyUsageExtension(Date
the date/time before which the private key
should not be used notBefore, Date the date/time after which the private key
should not be used. notAfter)The default constructor for PrivateKeyUsageExtension. |
| public | PrivateKeyUsageExtension(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. |
| Modifier and Type | Method and Description |
|---|---|
| public void | encode(DerOutputStream
the DerOutputStream to write the extension to. out)Overrides sun. Implements sun. Write the extension to the OutputStream. |
| private void | |
| public String | |
| public Date | |
| public Date | |
| public String | |
| public void | |
| public void |
| NAME | back to summary |
|---|---|
| public static final String NAME | |
| notAfter | back to summary |
|---|---|
| private Date notAfter | |
| notBefore | back to summary |
|---|---|
| private Date notBefore | |
| TAG_AFTER | back to summary |
|---|---|
| private static final byte TAG_AFTER | |
| TAG_BEFORE | back to summary |
|---|---|
| private static final byte TAG_BEFORE | |
| PrivateKeyUsageExtension | back to summary |
|---|---|
| public PrivateKeyUsageExtension(Date notBefore, Date notAfter) The default constructor for PrivateKeyUsageExtension. At least one of the arguments must be non null. | |
| PrivateKeyUsageExtension | back to summary |
|---|---|
| public PrivateKeyUsageExtension(Boolean critical, Object value) throws CertificateException, IOException Create the extension from the passed DER encoded value.
| |
| encode | back to summary |
|---|---|
| public void encode(DerOutputStream out) Overrides sun. Implements sun. Write the extension to the OutputStream.
| |
| encodeThis | back to summary |
|---|---|
| private void encodeThis() | |
| getName | back to summary |
|---|---|
| public String getName() Overrides sun. Return the name of this extension.
| |
| getNotAfter | back to summary |
|---|---|
| public Date getNotAfter() | |
| getNotBefore | back to summary |
|---|---|
| public Date getNotBefore() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides sun. Return the printable 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.
| |