Class cryptiX.asn1.ASN1Object
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class cryptiX.asn1.ASN1Object

java.lang.Object
   |
   +----cryptiX.asn1.ASN1Object

public class ASN1Object
extends Object
implements Composite
This abstract class defines the external interface for ASN.1 values, both primitive and constructed. The subclasses of this class are assumed to define the application specific methods for accessing the data stored in the ASN.1 data structure.

This class also implements a number of abstract factory methods that create components of appropriate subclasses. In this way, this class acts as a concrete factory an Abstract Factory pattern.


Variable Index

 o asnType
The ASN.1 type of this ASN.1 object.

Constructor Index

 o ASN1Object()

Method Index

 o addComponent(Composite)
Add a new component to the end of sequence.
 o addComponent(Composite, int)
Add a new component to a given location within the sequence.
 o countComponents()
Returns the number of component objects.
 o getAsnType()
Returns the ASN.1 type of this ASN.1 object.
 o getComponent(int)
Returns the component at the given location within a sequence.
 o getComponents()
Returns an Enumeration that iterates over the component objects.
 o getTypes()
Gets the classes in which formats the values may be returned.
 o getValue()
Get the value of this component as a native Java object.
 o getValueInternal()
Returns the object value, used by the coders.
 o init(ASN)
Performs any class specific initialization.
 o isA(ASN)
Tests if this object is an instance of given ASN.1 type.
 o removeComponent(Composite)
Removes a component from a sequence.
 o removeComponent(int)
Removes a component at the given location within a sequence.
 o setComponent(int, Composite)
Sets the component at the given location within a sequence.
 o setValue(Object)
Set the value of this component as a native Java object.

Variables

 o asnType
  protected ASN asnType
The ASN.1 type of this ASN.1 object.

Constructors

 o ASN1Object
  public ASN1Object()

Methods

 o init
  protected abstract void init(ASN type)
Performs any class specific initialization. An abstract method implemented by subclasses.
 o getAsnType
  public ASN getAsnType()
Returns the ASN.1 type of this ASN.1 object.
 o isA
  public boolean isA(ASN type)
Tests if this object is an instance of given ASN.1 type.
 o setValue
  public void setValue(Object value)
Set the value of this component as a native Java object.
 o getValue
  public Object getValue()
Get the value of this component as a native Java object.
Returns:
s null if the object is not representable as a Java object.
 o getValueInternal
  protected Object getValueInternal()
Returns the object value, used by the coders.
 o getTypes
  public Class[] getTypes()
Gets the classes in which formats the values may be returned.
Returns:
s an array of classes
 o addComponent
  public void addComponent(Composite component)
Add a new component to the end of sequence. Unless overridden by subclass, throws NonCompositeException.
 o addComponent
  public void addComponent(Composite component,
                           int index)
Add a new component to a given location within the sequence. Unless overridden by subclass, throws NonCompositeException.
 o removeComponent
  public void removeComponent(Composite component)
Removes a component from a sequence. Unless overridden by subclass, throws NonCompositeException.
 o removeComponent
  public void removeComponent(int index)
Removes a component at the given location within a sequence. Unless overridden by subclass, throws NonCompositeException.
 o getComponent
  public Composite getComponent(int index)
Returns the component at the given location within a sequence. Unless overridden by subclass, throws NonCompositeException.
 o setComponent
  public void setComponent(int index,
                           Composite value)
Sets the component at the given location within a sequence. Unless overridden by subclass, throws NonCompositeException.
 o countComponents
  public int countComponents()
Returns the number of component objects. Zero if none.
 o getComponents
  public Enumeration getComponents()
Returns an Enumeration that iterates over the component objects. Returns a NullEnumeration if this object is not a container.

All Packages  Class Hierarchy  This Package  Previous  Next  Index