All Packages Class Hierarchy This Package Previous Next Index
Class iaik.asn1.CON_SPEC
java.lang.Object
|
+----iaik.asn1.ASN1Object
|
+----iaik.asn1.CON_SPEC
- public class CON_SPEC
- extends ASN1Object
This class implements the native ASN.1 type "BIT STRING".
The BIT STRING type denotes an arbitrary string of bits (ones and zeros).
A BitString value can have any length, including zero.
-
CON_SPEC()
- Creates an empty object.
-
CON_SPEC(int, ASN1Object)
- Creates a new explicitly tagged context specific ASN.1 type.
-
CON_SPEC(int, ASN1Object, boolean)
- Creates a new context specific ASN.1 type.
-
decode(int, int, DerDecodeInputStream)
- Decodes the next available data from the DerDecodeInputStream.
-
encode(DerEncodeOutputStream)
- DER encodes this ASN1Object and write the result to the DerEncodeOutputStream.
-
getValue()
- Returns the value of this CON_SPEC as a ASN1Object.
-
init()
- Initialize the object factory method.
-
setValue(Object)
- Sets the value of this object to value.
-
toString()
- Returns a string that represents the contents of this BitString.
CON_SPEC
protected CON_SPEC()
- Creates an empty object.
CON_SPEC
public CON_SPEC(int conSpecTag,
ASN1Object obj)
- Creates a new explicitly tagged context specific ASN.1 type.
- Parameters:
- conSpecTag - the context specific tag
- obj - the underlying ASN1Object
CON_SPEC
public CON_SPEC(int conSpecTag,
ASN1Object obj,
boolean implicitlyTagged)
- Creates a new context specific ASN.1 type.
- Parameters:
- conSpecTag - the context specific tag
- obj - the underlying ASN1Object
- implicitlyTagged - create an implicitly or an explicitly tagged object
init
protected static void init()
- Initialize the object factory method.
getValue
public Object getValue()
- Returns the value of this CON_SPEC as a ASN1Object.
- Overrides:
- getValue in class ASN1Object
setValue
public void setValue(Object value) throws IllegalArgumentException
- Sets the value of this object to value.
The value must be an ASN1Object
- Overrides:
- setValue in class ASN1Object
encode
protected void encode(DerEncodeOutputStream os)
- DER encodes this ASN1Object and write the result to the DerEncodeOutputStream.
- Parameters:
- os - the output stream to which to write the data
- Overrides:
- encode in class ASN1Object
decode
protected void decode(int tag,
int length,
DerDecodeInputStream is) throws IOException, CodingException
- Decodes the next available data from the DerDecodeInputStream.
- Parameters:
- tag - the full tag of the current ASN1Object
- length - the length of the ASN1Object which shall be decoded
- Throws: IOException
- if there is a problem with the DerDecodeInputStream
- Throws: CodingException
- if the bytes from is could not be decoded
- Overrides:
- decode in class ASN1Object
toString
public String toString()
- Returns a string that represents the contents of this BitString.
- Returns:
- the string representation
- Overrides:
- toString in class ASN1Object
All Packages Class Hierarchy This Package Previous Next Index