FileDocCategorySizeDatePackage
PrivateKeyUsagePeriod.javaAPI DocAndroid 1.5 API4204Wed May 06 22:41:06 BST 2009org.apache.harmony.security.x509

PrivateKeyUsagePeriod

public 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
ASN1
ASN.1 DER X.509 PrivateKeyUsagePeriod encoder/decoder class.
Constructors Summary
public PrivateKeyUsagePeriod(Date notBeforeDate, Date notAfterDate)
TODO

param
notBeforeDate: Date
param
notAfterDate: Date

        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.

return
a byte array containing ASN.1 encode form.

        if (encoding == null) {
            encoding = ASN1.encode(this);
        }
        return encoding;
    
public java.util.DategetNotAfter()
Returns the value of notAfter field of the structure.

return
notAfter

        return notAfterDate;
    
public java.util.DategetNotBefore()
Returns the value of notBefore field of the structure.

return
notBefore

        return notBeforeDate;