Package org.apache.harmony.security.x509
Class PrivateKeyUsagePeriod
java.lang.Object
org.apache.harmony.security.x509.PrivateKeyUsagePeriod
public final class PrivateKeyUsagePeriod extends Object
The class encapsulates the ASN.1 DER encoding/decoding work
with the following certificate extension (OID: 2.5.29.16)
(as specified in RFC 3280 -
Internet X.509 Public Key Infrastructure.
Certificate and Certificate Revocation List (CRL) Profile.
http://www.ietf.org/rfc/rfc3280.txt):
PrivateKeyUsagePeriod ::= SEQUENCE {
notBefore [0] GeneralizedTime OPTIONAL,
notAfter [1] GeneralizedTime OPTIONAL
}
-
Field Summary
Fields Modifier and Type Field Description static ASN1SequenceASN1ASN.1 DER X.509 PrivateKeyUsagePeriod encoder/decoder class. -
Constructor Summary
Constructors Constructor Description PrivateKeyUsagePeriod(Date notBeforeDate, Date notAfterDate) -
Method Summary
Modifier and Type Method Description byte[]getEncoded()Returns ASN.1 encoded form of this X.509 PrivateKeyUsagePeriod value.DategetNotAfter()Returns the value of notAfter field of the structure.DategetNotBefore()Returns the value of notBefore field of the structure.
-
Field Details
-
ASN1
ASN.1 DER X.509 PrivateKeyUsagePeriod encoder/decoder class.
-
-
Constructor Details
-
PrivateKeyUsagePeriod
-
-
Method Details
-
getNotBefore
Returns the value of notBefore field of the structure. -
getNotAfter
Returns the value of notAfter field of the structure. -
getEncoded
public byte[] getEncoded()Returns ASN.1 encoded form of this X.509 PrivateKeyUsagePeriod value.
-