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.
-
primitive
- shows if the encoding is primitive or constructed
-
tag
- The context specific tag number of the object.
-
value
- The value of the context specific object
-
CONTEXT()
- Create a new CONTEXT.
-
CONTEXT(int, ASN1Object)
- Create a new CONTEXT.
-
getValue()
- Returns the value of this context
-
init(ASN)
- Perform CONTEXT specific initialization
-
isPrimitive()
- Returns the value of this context
-
setValue(int, ASN1Object)
- This method is used to set the value of the context.
-
setValue(Object)
- Sets the object value.
-
tag()
- Returns the tag of this context
-
toString()
- Returns a String that represents the value of this Object.
tag
protected int tag
- The context specific tag number of the object.
primitive
protected boolean primitive
- shows if the encoding is primitive or constructed
value
protected ASN1Object value
- The value of the context specific object
CONTEXT
protected CONTEXT()
- Create a new CONTEXT. Called by the OBJECTFactory.
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
init
protected void init(ASN type)
- Perform CONTEXT specific initialization
- Overrides:
- init in class ASN1Object
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
setValue
public synchronized void setValue(Object obj)
- Sets the object value.
- Overrides:
- setValue in class ASN1Object
tag
public int tag()
- Returns the tag of this context
getValue
public Object getValue()
- Returns the value of this context
- Overrides:
- getValue in class ASN1Object
isPrimitive
public boolean isPrimitive()
- Returns the value of this context
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