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

Validity

public class Validity extends Object
The class encapsulates the ASN.1 DER encoding/decoding work with Validity structure which is the part of X.509 certificate (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):
Validity ::= SEQUENCE {
notBefore Time,
notAfter Time
}

Fields Summary
private final Date
notBefore
private final Date
notAfter
private byte[]
encoding
public static final org.apache.harmony.security.asn1.ASN1Sequence
ASN1
ASN.1 DER X.509 Validity encoder/decoder class.
Constructors Summary
public Validity(Date notBefore, Date notAfter)
TODO

param
notBefore: Date
param
notAfter: Date

        this.notBefore = notBefore;
        this.notAfter = notAfter;
    
Methods Summary
public byte[]getEncoded()
Returns ASN.1 encoded form of this X.509 Validity 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 notAfter;
    
public java.util.DategetNotBefore()
Returns the value of notBefore field of the structure.

return
notBefore

        return notBefore;