1 package org.bouncycastle.asn1.x509;
3 import org.bouncycastle.asn1.*;
6 * an object for the elements in the X.509 V3 extension block.
8 public class X509Extension
17 this.critical = critical.isTrue();
25 this.critical = critical;
29 public boolean isCritical()
34 public DEROctetString getValue()
41 if (this.isCritical())
43 return this.getValue().hashCode();
47 return ~this.getValue().hashCode();
50 public boolean equals(
53 if (o == null || !(o instanceof X509Extension))
58 X509Extension other = (X509Extension)o;
60 return other.getValue().equals(this.getValue())
61 && (other.isCritical() == this.isCritical());