org.gudy.bouncycastle.asn1.x509
Class X509Extension
java.lang.Object
org.gudy.bouncycastle.asn1.x509.X509Extension
public class X509Extension
- extends Object
an object for the elements in the X.509 V3 extension block.
X509Extension
public X509Extension(DERBoolean critical,
ASN1OctetString value)
X509Extension
public X509Extension(boolean critical,
ASN1OctetString value)
isCritical
public boolean isCritical()
getValue
public ASN1OctetString getValue()
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
convertValueToObject
public static ASN1Object convertValueToObject(X509Extension ext)
throws IllegalArgumentException
- Convert the value of the passed in extension to an object
- Parameters:
ext
- the extension to parse
- Returns:
- the object the value string contains
- Throws:
IllegalArgumentException
- if conversion is not possible