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

CRLNumber

public class CRLNumber extends ExtensionValue
CRL Entry's CRL Number Extension (OID = 2.5.29.20).
id-ce-cRLNumber OBJECT IDENTIFIER ::= { id-ce 20 }

CRLNumber ::= INTEGER (0..MAX)
(as specified in RFC 3280 http://www.ietf.org/rfc/rfc3280.txt)

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

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

        super(encoding);
        number = new BigInteger((byte[]) 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("CRL Number: [ ").append(number).append( //$NON-NLS-1$
                " ]\n"); //$NON-NLS-1$
    
public byte[]getEncoded()
Returns ASN.1 encoded form of this X.509 CRLNumber value.

return
a byte array containing ASN.1 encoded form.

        if (encoding == null) {
            encoding = ASN1.encode(number.toByteArray());
        }
        return encoding;
    
public java.math.BigIntegergetNumber()
Returns the invalidity date.

        return number;