|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object anon.crypto.AbstractX509Extension
public abstract class AbstractX509Extension
Represents and creates an X509 V3 extensions. The concrete extensions are subclasses of this class and must (!) implement the IDENTIFIER String constant and a public (!) constructor that takes a DERSequence.
http://www.faqs.org/rfcs/rfc3280.html
Field Summary | |
---|---|
private static java.lang.Class[] |
AVAILABLE_EXTENSIONS
|
static java.lang.String |
IDENTIFIER
Each subclass must contain this individual identifier. |
private boolean |
m_critical
|
private org.bouncycastle.asn1.DERSequence |
m_extension
|
private org.bouncycastle.asn1.DERObjectIdentifier |
m_identifier
|
private byte[] |
m_value
|
private static java.util.Vector |
ms_classExtensions
|
Constructor Summary | |
---|---|
AbstractX509Extension(org.bouncycastle.asn1.DERSequence a_extension)
Creates an extension from a BouncyCastle DER sequence. |
|
AbstractX509Extension(java.lang.String a_identifier,
boolean a_critical,
byte[] a_value)
Create a new X509 V3 extension. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object a_object)
Two extensions are equal if their identifiers are equal. |
(package private) org.bouncycastle.asn1.DERSequence |
getBCExtension()
Returns the extension as BouncyCastle DERSequence. |
byte[] |
getDEROctets()
Returns the DER value of this extension in a single byte array. |
java.lang.String |
getIdentifier()
Returns the identifier of this extension. |
(package private) static AbstractX509Extension |
getInstance(org.bouncycastle.asn1.DERSequence a_extension)
Creates an extension from a BouncyCastle DER sequence. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String IDENTIFIER
private static java.lang.Class[] AVAILABLE_EXTENSIONS
private static java.util.Vector ms_classExtensions
private org.bouncycastle.asn1.DERObjectIdentifier m_identifier
private boolean m_critical
private byte[] m_value
private org.bouncycastle.asn1.DERSequence m_extension
Constructor Detail |
---|
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(org.bouncycastle.asn1.DERSequence a_extension)
X509UnknownExtension(DERSequence a_extension) { super(a_extension); }
a_extension
- a DERSequenceMethod Detail |
---|
static AbstractX509Extension getInstance(org.bouncycastle.asn1.DERSequence a_extension)
a_extension
- a DERSequence
public 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 Object
public abstract java.util.Vector getValues()
public final java.lang.String toString()
toString
in class java.lang.Object
final org.bouncycastle.asn1.DERSequence getBCExtension()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |