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

Class cryptiX.asn1.CONTEXT

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

public final class CONTEXT
extends ASN1Object
This class represents ASN.1 context specific objects. Note that sequences are NOT public. They shall be created with ASN.create(ASN.CONTEXT_SPECIFIC), and accessed through the public OBJECT interface.

Variable Index

 o primitive
shows if the encoding is primitive or constructed
 o tag
The context specific tag number of the object.
 o value
The value of the context specific object

Constructor Index

 o CONTEXT()
Create a new CONTEXT.
 o CONTEXT(int, ASN1Object)
Create a new CONTEXT.

Method Index

 o getValue()
Returns the value of this context
 o init(ASN)
Perform CONTEXT specific initialization
 o isPrimitive()
Returns the value of this context
 o setValue(int, ASN1Object)
This method is used to set the value of the context.
 o setValue(Object)
Sets the object value.
 o tag()
Returns the tag of this context
 o toString()
Returns a String that represents the value of this Object.

Variables

 o tag
  protected int tag
The context specific tag number of the object.
 o primitive
  protected boolean primitive
shows if the encoding is primitive or constructed
 o value
  protected ASN1Object value
The value of the context specific object

Constructors

 o CONTEXT
  protected CONTEXT()
Create a new CONTEXT. Called by the OBJECTFactory.
 o CONTEXT
  public CONTEXT(int cst,
                 ASN1Object val)
Create a new CONTEXT. Called by the OBJECTFactory.
Parameters:
cst - the context specific tag
the - object defined by this tag

Methods

 o init
  protected void init(ASN type)
Perform CONTEXT specific initialization
Overrides:
init in class ASN1Object
 o setValue
  public void setValue(int cst,
                       ASN1Object val)
This method is used to set the value of the context.
Parameters:
cst - the context specific tag
the - object defined by this tag
 o setValue
  public synchronized void setValue(Object obj)
Sets the object value.
Overrides:
setValue in class ASN1Object
 o tag
  public int tag()
Returns the tag of this context
 o getValue
  public Object getValue()
Returns the value of this context
Overrides:
getValue in class ASN1Object
 o isPrimitive
  public boolean isPrimitive()
Returns the value of this context
 o toString
  public String toString()
Returns a String that represents the value of this Object.
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index