public final class BERTag extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
BIT_STRING
ASN.1 (ISO/IEC 8825-1:2002) universal class BER-TLV tag specifying bit string type.
|
static int |
BMP_STRING
ASN.1 (ISO/IEC 8825-1:2002) universal class BER-TLV tag specifying BMPString type.
|
static int |
BOOLEAN
ASN.1 (ISO/IEC 8825-1:2002) universal class BER-TLV tag specifying boolean type.
|
static int |
CHARACTER_STRING
ASN.1 (ISO/IEC 8825-1:2002) universal class BER-TLV tag specifying character string type.
|
static int |
EMBEDDED_PDV
ASN.1 (ISO/IEC 8825-1:2002) universal class BER-TLV tag specifying embedded PDV type.
|
static int |
END_OF_CONTENTS
ASN.1 (ISO/IEC 8825-1:2002) universal class BER-TLV tag specifying the end of contents.
|
static int |
ENUMERATED
ASN.1 (ISO/IEC 8825-1:2002) universal class BER-TLV tag specifying enumerated type.
|
static int |
EXTERNAL
ASN.1 (ISO/IEC 8825-1:2002) universal class BER-TLV tag specifying external type.
|
static int |
GENERAL_STRING
ASN.1 (ISO/IEC 8825-1:2002) universal class BER-TLV tag specifying General-String type.
|
static int |
GENERALIZED_TIME
ASN.1 (ISO/IEC 8825-1:2002) universal class BER-TLV tag specifying GenerealizedTime type.
|
static int |
GRAPHIC_STRING
ASN.1 (ISO/IEC 8825-1:2002) universal class BER-TLV tag specifying Graphic-String type.
|
static int |
IA5_STRING
ASN.1 (ISO/IEC 8825-1:2002) universal class BER-TLV tag specifying IA5String type.
|
static int |
INSTANCE_OF
ASN.1 (ISO/IEC 8825-1:2002) universal class BER-TLV tag specifying instance-of type.
|
static int |
INTEGER
ASN.1 (ISO/IEC 8825-1:2002) universal class BER-TLV tag specifying integer type.
|
static int |
ISO646_STRING
ASN.1 (ISO/IEC 8825-1:2002) universal class BER-TLV tag specifying ISO646String type.
|
static int |
NULL
ASN.1 (ISO/IEC 8825-1:2002) universal class BER-TLV tag specifying null type.
|
static int |
NUMERIC_STRING
ASN.1 (ISO/IEC 8825-1:2002) universal class BER-TLV tag specifying Numeric-String type.
|
static int |
OBJECT_DESCRIPTOR
ASN.1 (ISO/IEC 8825-1:2002) universal class BER-TLV tag specifying Object-Descriptor type.
|
static int |
OBJECT_IDENTIFIER
ASN.1 (ISO/IEC 8825-1:2002) universal class BER-TLV tag specifying object identifier type.
|
static int |
OCTET_STRING
ASN.1 (ISO/IEC 8825-1:2002) universal class BER-TLV tag specifying octet string type.
|
static int |
PRINTABLE_STRING
ASN.1 (ISO/IEC 8825-1:2002) universal class BER-TLV tag specifying PrintableString type.
|
static int |
REAL
ASN.1 (ISO/IEC 8825-1:2002) universal class BER-TLV tag specifying real type.
|
static int |
RELATIVE_OBJECT_IDENTIFIER
ASN.1 (ISO/IEC 8825-1:2002) universal class BER-TLV tag specifying relative object identifier type.
|
static int |
SEQUENCE
ASN.1 (ISO/IEC 8825-1:2002) universal class BER-TLV tag specifying sequence type.
|
static int |
SEQUENCE_OF
ASN.1 (ISO/IEC 8825-1:2002) universal class BER-TLV tag specifying sequence-of type.
|
static int |
SET
ASN.1 (ISO/IEC 8825-1:2002) universal class BER-TLV tag specifying set type.
|
static int |
SET_OF
ASN.1 (ISO/IEC 8825-1:2002) universal class BER-TLV tag specifying set-of type.
|
static int |
T61_STRING
ASN.1 (ISO/IEC 8825-1:2002) universal class BER-TLV tag specifying T61String type.
|
static int |
TELETEX_STRING
ASN.1 (ISO/IEC 8825-1:2002) universal class BER-TLV tag specifying TeletexString type.
|
static int |
UNIVERSAL_STRING
ASN.1 (ISO/IEC 8825-1:2002) universal class BER-TLV tag specifying Universal-String type.
|
static int |
UTC_TIME
ASN.1 (ISO/IEC 8825-1:2002) universal class BER-TLV tag specifying UTCTime type.
|
static int |
UTF8_STRING
ASN.1 (ISO/IEC 8825-1:2002) universal class BER-TLV tag specifying UTF8String type.
|
static int |
VIDEOTEX_STRING
ASN.1 (ISO/IEC 8825-1:2002) universal class BER-TLV tag specifying Videotex-String type.
|
static int |
VISIBLE_STRING
ASN.1 (ISO/IEC 8825-1:2002) universal class BER-TLV tag specifying VisibleString type.
|
| Constructor and Description |
|---|
BERTag() |
| Modifier and Type | Method and Description |
|---|---|
static BERTagClass |
getClass(int value)
Gets the class of the BER-TLV tag field.
|
static BERTagEncoding |
getEncoding(int value)
Gets the encoding of the BER-TLV data object.
|
static int |
getLength(int value)
Gets the length of the BER-TLV tag field.
|
static int |
getNumber(int value)
Gets the tag number encoded in the BERTLV tag field.
|
static int |
getValue(BERTagClass cls,
BERTagEncoding encoding,
int number)
Creates BERTag value.
|
static boolean |
isValid(int value,
boolean ffIsValidForTheFirstByte)
Specifies whether 0xFF value is valid for the first byte of BER-TLV tag fields.
|
static com.neurotec.lang.NType |
nativeTypeOf()
Retrieves the native type for the enclosing class.
|
static int |
read(byte[] buffer)
Deprecated.
|
static int |
read(ByteBuffer buffer)
Reads BER-TLV tag field from memory buffer.
|
static int |
read(com.neurotec.io.NBuffer buffer)
Reads BER-TLV tag field from memory buffer.
|
static com.neurotec.io.NBuffer |
save(int value)
Saves BER-TLV tag to byte array.
|
String |
toString(int value)
Returns a String that represents the current Object.
|
String |
toString(int value,
String format)
Returns a String that represents the current Object.
|
static int |
write(ByteBuffer buffer,
int value)
Writes BER-TLV tag field to a memory buffer.
|
static int |
write(com.neurotec.io.NBuffer buffer,
int value)
Writes BER-TLV tag field to a NBuffer.
|
public static final int END_OF_CONTENTS
public static final int BOOLEAN
public static final int INTEGER
public static final int BIT_STRING
public static final int OCTET_STRING
public static final int NULL
public static final int OBJECT_IDENTIFIER
public static final int OBJECT_DESCRIPTOR
public static final int EXTERNAL
public static final int INSTANCE_OF
public static final int REAL
public static final int ENUMERATED
public static final int EMBEDDED_PDV
public static final int UTF8_STRING
public static final int RELATIVE_OBJECT_IDENTIFIER
public static final int SEQUENCE
public static final int SEQUENCE_OF
public static final int SET
public static final int SET_OF
public static final int NUMERIC_STRING
public static final int PRINTABLE_STRING
public static final int TELETEX_STRING
public static final int T61_STRING
public static final int VIDEOTEX_STRING
public static final int IA5_STRING
public static final int UTC_TIME
public static final int GENERALIZED_TIME
public static final int GRAPHIC_STRING
public static final int VISIBLE_STRING
public static final int ISO646_STRING
public static final int GENERAL_STRING
public static final int UNIVERSAL_STRING
public static final int CHARACTER_STRING
public static final int BMP_STRING
public static com.neurotec.lang.NType nativeTypeOf()
public static int getValue(BERTagClass cls, BERTagEncoding encoding, int number)
cls - Class of the BER-TLV tag field.encoding - Encoding of the BER-TLV tag fieldnumber - Raw tag number of the BER-TLV tag field.@Deprecated public static int read(byte[] buffer)
buffer - Byte array that contains BER-TLV tag field.public static int read(ByteBuffer buffer)
buffer - Byte buffer that contains BER-TLV tag field.public static int read(com.neurotec.io.NBuffer buffer)
buffer - NBuffer that contains BER-TLV tag field.public static boolean isValid(int value,
boolean ffIsValidForTheFirstByte)
value - BER-TLV tag value.ffIsValidForTheFirstByte - Specifies whether 0xFF value is valid for the first byte of BER-TLV tag fields.public static int write(ByteBuffer buffer, int value)
buffer - Byte buffer to write into.value - BERTag value.public static int write(com.neurotec.io.NBuffer buffer,
int value)
buffer - NBuffer to write into.value - BERTag value.public static com.neurotec.io.NBuffer save(int value)
value - BER-TLV tag value.public static BERTagClass getClass(int value)
value - BER-TLV tag value.public static BERTagEncoding getEncoding(int value)
value - BER-TLV tag value.public static int getNumber(int value)
value - BER-TLV tag value.public static int getLength(int value)
value - BER-TLV tag value.public String toString(int value)
value - BER-TLV tag value.Copyright © 2016 Neurotechnology. All rights reserved.