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

InvalidityDate

public class InvalidityDate extends ExtensionValue
CRL Entry's Invalidity Date Extension (OID = 2.5.29.24).
id-ce-invalidityDate OBJECT IDENTIFIER ::= { id-ce 24 }

invalidityDate ::= GeneralizedTime
(as specified in RFC 3280 http://www.ietf.org/rfc/rfc3280.txt)

Fields Summary
private final Date
date
public static org.apache.harmony.security.asn1.ASN1Type
ASN1
ASN.1 Encoder/Decoder.
Constructors Summary
public InvalidityDate(Date date)
Constructs the object on the base of the invalidity date value.

        this.date = date;
    
public InvalidityDate(byte[] encoding)
Constructs the object on the base of its encoded form.

        super(encoding);
        date = (Date) ASN1.decode(encoding);
    
Methods Summary
public voiddumpValue(java.lang.StringBuffer buffer, java.lang.String prefix)
Places the string representation of extension value into the StringBuffer object.

        buffer.append(prefix).append("Invalidity Date: [ ") //$NON-NLS-1$
            .append(date).append(" ]\n"); //$NON-NLS-1$
    
public java.util.DategetDate()
Returns the invalidity date.

        return date;
    
public byte[]getEncoded()
Returns ASN.1 encoded form of this X.509 InvalidityDate value.

return
a byte array containing ASN.1 encoded form.

        if (encoding == null) {
            encoding = ASN1.encode(date);
        }
        return encoding;