프로퍼티 | 타입 | 설명 | |
---|---|---|---|
APPLICATION | byte | ||
BITSTRING | byte | ||
BOOLEAN | byte | ||
CONSTRUCTOR | byte | ||
CONTEXT | byte | ||
INTEGER | byte | ||
NULL | byte | ||
OBJECTID | byte | ||
OCTETSTRING | byte | ||
PRIMITIVE | byte | ||
PRIVATE | byte | ||
SEQUENCE | byte | ||
SET | byte | ||
UNIVERSAL | byte |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
EXTENSION_ID | byte | ||
HIGH_BIT | byte | ||
_asnType | byte |
메소드 | 설명 | |
---|---|---|
Clone ( ) : object |
Abstract Clone() member function
|
|
decode ( byte buffer, int offset ) : int |
Decodes the ASN.1 buffer and sets the values in the AsnType object.
|
|
encode ( MutableByte buffer ) : void |
Encodes the data object in the specified buffer
|
메소드 | 설명 | |
---|---|---|
BuildHeader ( MutableByte mb, byte asnType, int asnLength ) : void |
Build ASN.1 header in the MutableByte array. Header is the TL part of the TLV (type, length, value) BER encoded data representation. Each value is encoded as a Type byte, length of the data field and the actual, encoded data. This method will encode the type and length fields. |
|
BuildLength ( MutableByte mb, int asnLength ) : void |
Append BER encoded length to the MutableByte
|
|
ParseHeader ( byte mb, int &offset, int &length ) : byte |
Parse ASN.1 header.
|
|
ParseLength ( byte mb, int &offset ) : int |
MutableByte version of ParseLength. Retrieve BER encoded length from a byte array at supplied offset
|
public abstract decode ( byte buffer, int offset ) : int | ||
buffer | byte | The encoded data buffer |
offset | int | The offset of the first valid byte. |
리턴 | int |
public abstract encode ( MutableByte buffer ) : void | ||
buffer | MutableByte | The buffer to write the encoded information |
리턴 | void |