public abstract class AbstractX509Extension
extends java.lang.Object
http://www.faqs.org/rfcs/rfc3280.html
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
IDENTIFIER
Each subclass must contain this individual identifier.
|
Constructor and Description |
---|
AbstractX509Extension(mybouncycastle.org.bouncycastle.asn1.ASN1Sequence a_extension)
Creates an extension from a BouncyCastle ASN1 sequence.
|
AbstractX509Extension(java.lang.String a_identifier,
boolean a_critical,
byte[] a_value)
Create a new X509 V3 extension.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object a_object)
Two extensions are equal if their identifiers are equal.
|
byte[] |
getDEROctets()
Returns the DER value of this extension in a single byte array.
|
java.lang.String |
getIdentifier()
Returns the identifier of this extension.
|
abstract java.lang.String |
getName()
Returns the human-readable name of this extension.
|
abstract java.util.Vector |
getValues()
This method returns all values of this extension in separated String objects.
|
int |
hashCode()
The hash code is derived from the identifier.
|
boolean |
isCritical()
Returns if the extension is critical.
|
java.lang.String |
toString()
Returns the name of this extension.
|
public static final java.lang.String IDENTIFIER
public AbstractX509Extension(java.lang.String a_identifier, boolean a_critical, byte[] a_value)
a_identifier
- the identifier of this extensiona_critical
- booleana_value
- the extension's valuepublic AbstractX509Extension(mybouncycastle.org.bouncycastle.asn1.ASN1Sequence a_extension)
X509UnknownExtension(ASN1Sequence a_extension) { super(a_extension); }
a_extension
- a ASN1Sequencepublic abstract java.lang.String getName()
public final boolean isCritical()
public final java.lang.String getIdentifier()
public final byte[] getDEROctets()
public final int hashCode()
hashCode
in class java.lang.Object
public final boolean equals(java.lang.Object a_object)
equals
in class java.lang.Object
a_object
- an Objectpublic abstract java.util.Vector getValues()
public final java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2023. All rights reserved.