PrivateKeyUsagePeriodpublic 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
}
|
Fields Summary |
---|
private final Date | notBeforeDate | private final Date | notAfterDate | private byte[] | encoding | public static final org.apache.harmony.security.asn1.ASN1Sequence | ASN1ASN.1 DER X.509 PrivateKeyUsagePeriod encoder/decoder class. |
Constructors Summary |
---|
public PrivateKeyUsagePeriod(Date notBeforeDate, Date notAfterDate)TODO
this(notBeforeDate, notAfterDate, null);
| private PrivateKeyUsagePeriod(Date notBeforeDate, Date notAfterDate, byte[] encoding)
this.notBeforeDate = notBeforeDate;
this.notAfterDate = notAfterDate;
this.encoding = encoding;
|
Methods Summary |
---|
public byte[] | getEncoded()Returns ASN.1 encoded form of this X.509 PrivateKeyUsagePeriod value.
if (encoding == null) {
encoding = ASN1.encode(this);
}
return encoding;
| public java.util.Date | getNotAfter()Returns the value of notAfter field of the structure.
return notAfterDate;
| public java.util.Date | getNotBefore()Returns the value of notBefore field of the structure.
return notBeforeDate;
|
|