public abstract class BerEncoding extends Object
X.690.| 限定符和类型 | 字段和说明 |
|---|---|
static int |
ID_FLAG_CONSTRUCTED_ENCODING
Constructed vs primitive flag in the first identifier byte.
|
static int |
TAG_CLASS_APPLICATION
Tag class: APPLICATION
|
static int |
TAG_CLASS_CONTEXT_SPECIFIC
Tag class: CONTEXT SPECIFIC
|
static int |
TAG_CLASS_PRIVATE
Tag class: PRIVATE
|
static int |
TAG_CLASS_UNIVERSAL
Tag class: UNIVERSAL
|
static int |
TAG_NUMBER_INTEGER
Tag number: INTEGER
|
static int |
TAG_NUMBER_NULL
Tag number: NULL
|
static int |
TAG_NUMBER_OBJECT_IDENTIFIER
Tag number: OBJECT IDENTIFIER
|
static int |
TAG_NUMBER_OCTET_STRING
Tag number: OCTET STRING
|
static int |
TAG_NUMBER_SEQUENCE
Tag number: SEQUENCE
|
static int |
TAG_NUMBER_SET
Tag number: SET
|
| 限定符和类型 | 方法和说明 |
|---|---|
static int |
getTagClass(Asn1TagClass tagClass) |
static int |
getTagClass(byte firstIdentifierByte)
Returns the tag class encoded in the provided first identifier byte.
|
static int |
getTagNumber(Asn1Type dataType) |
static int |
getTagNumber(byte firstIdentifierByte)
Returns the tag number encoded in the provided first identifier byte.
|
static boolean |
isConstructed(byte firstIdentifierByte)
Returns
true if the provided first identifier byte indicates that the data value uses
constructed encoding for its contents, or false if the data value uses primitive
encoding for its contents. |
static byte |
setTagClass(byte firstIdentifierByte,
int tagClass) |
static byte |
setTagNumber(byte firstIdentifierByte,
int tagNumber) |
static String |
tagClassAndNumberToString(int tagClass,
int tagNumber) |
static String |
tagClassToString(int typeClass) |
static String |
tagNumberToString(int tagNumber) |
public static final int ID_FLAG_CONSTRUCTED_ENCODING
public static final int TAG_CLASS_UNIVERSAL
public static final int TAG_CLASS_APPLICATION
public static final int TAG_CLASS_CONTEXT_SPECIFIC
public static final int TAG_CLASS_PRIVATE
public static final int TAG_NUMBER_INTEGER
public static final int TAG_NUMBER_OCTET_STRING
public static final int TAG_NUMBER_NULL
public static final int TAG_NUMBER_OBJECT_IDENTIFIER
public static final int TAG_NUMBER_SEQUENCE
public static final int TAG_NUMBER_SET
public static int getTagNumber(Asn1Type dataType)
public static int getTagClass(Asn1TagClass tagClass)
public static String tagClassToString(int typeClass)
public static String tagClassAndNumberToString(int tagClass, int tagNumber)
public static String tagNumberToString(int tagNumber)
public static boolean isConstructed(byte firstIdentifierByte)
true if the provided first identifier byte indicates that the data value uses
constructed encoding for its contents, or false if the data value uses primitive
encoding for its contents.public static int getTagClass(byte firstIdentifierByte)
TAG_CLASS
constants.public static byte setTagClass(byte firstIdentifierByte,
int tagClass)
public static int getTagNumber(byte firstIdentifierByte)
TAG_NUMBER
constants.public static byte setTagNumber(byte firstIdentifierByte,
int tagNumber)
Copyright © 2018. All rights reserved.