FileDocCategorySizeDatePackage
X509Extension.javaAPI DocAndroid 1.5 API1314Wed May 06 22:41:06 BST 2009org.bouncycastle.asn1.x509

X509Extension

public class X509Extension extends Object
an object for the elements in the X.509 V3 extension block.

Fields Summary
boolean
critical
org.bouncycastle.asn1.ASN1OctetString
value
Constructors Summary
public X509Extension(org.bouncycastle.asn1.DERBoolean critical, org.bouncycastle.asn1.ASN1OctetString value)

        this.critical = critical.isTrue();
        this.value = value;
    
public X509Extension(boolean critical, org.bouncycastle.asn1.ASN1OctetString value)

        this.critical = critical;
        this.value = value;
    
Methods Summary
public booleanequals(java.lang.Object o)

        if (!(o instanceof X509Extension))
        {
            return false;
        }

        X509Extension   other = (X509Extension)o;

        return other.getValue().equals(this.getValue())
            && (other.isCritical() == this.isCritical());
    
public org.bouncycastle.asn1.ASN1OctetStringgetValue()

        return value;
    
public inthashCode()

        if (this.isCritical())
        {
            return this.getValue().hashCode();
        }

        
        return ~this.getValue().hashCode();
    
public booleanisCritical()

        return critical;