All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class iaik.x509.V3Extension

java.lang.Object
   |
   +----iaik.x509.V3Extension

public abstract class V3Extension
extends Object
This class is the basic implementation for X509 extensions. Every class, which implements an extension must be derived from this class.


Variable Index

 o critical

Constructor Index

 o V3Extension()

Method Index

 o getName()
Returns the name of the extension.
 o getObjectID()
Returns the object ID of the extension.
 o hashCode()
Returns the hash code of the extension.
 o init(ASN1Object)
Inits the implementation with an ASN1Object.
 o isCritical()
Returns true, if this extension is critical.
 o setCritical(boolean)
Set the critical value of this extensions .
 o toASN1Object()
Creates an ASN1Object, which is the value of the ASN.1 type "Extension".

Variables

 o critical
 protected boolean critical

Constructors

 o V3Extension
 public V3Extension()

Methods

 o init
 public abstract void init(ASN1Object obj) throws ExtensionException
Inits the implementation with an ASN1Object. The ASN1Object is the extensionValue from ASN.1 type "Extension".

Parameters:
obj - the extension value
Throws: ExtensionException
if the extension coould not parse the ASN1Object
 o toASN1Object
 public abstract ASN1Object toASN1Object() throws ExtensionException
Creates an ASN1Object, which is the value of the ASN.1 type "Extension".

Returns:
the value of the extension as ASN1Object
Throws: ExtensionException
if the extension could not be created
 o getObjectID
 public abstract ObjectID getObjectID()
Returns the object ID of the extension.

Returns:
the object ID from the extension this class implements
 o hashCode
 public abstract int hashCode()
Returns the hash code of the extension.

Returns:
a hash code for this extension
Overrides:
hashCode in class Object
 o getName
 public String getName()
Returns the name of the extension.

Returns:
the name of the extension
 o setCritical
 public void setCritical(boolean critical)
Set the critical value of this extensions .

Parameters:
critical - wether the extension is critical or not
 o isCritical
 public boolean isCritical()
Returns true, if this extension is critical.

Returns:
shows if the extension is critical or not

All Packages  Class Hierarchy  This Package  Previous  Next  Index