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