public class BerIdentifier
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
APPLICATION_CLASS |
static int |
BIT_STRING_TAG |
static int |
BMP_STRING_TAG |
static int |
BOOLEAN_TAG |
static int |
CONSTRUCTED |
static int |
CONTEXT_CLASS |
static int |
ENUMERATED_TAG |
static int |
GENERAL_STRING_TAG |
static int |
GENERALIZED_TIME_TAG |
static int |
GRAPHIC_STRING_TAG |
static int |
IA5_STRING_TAG |
byte[] |
identifier |
int |
identifierClass |
static int |
INTEGER_TAG |
static int |
NULL_TAG |
static int |
NUMERIC_STRING_TAG |
static int |
OBJECT_IDENTIFIER_TAG |
static int |
OCTET_STRING_TAG |
int |
primitive |
static int |
PRIMITIVE |
static int |
PRINTABLE_STRING_TAG |
static int |
PRIVATE_CLASS |
static int |
REAL_TAG |
int |
tagNumber |
static int |
TELETEX_STRING_TAG |
static int |
UNIVERSAL_CLASS |
static int |
UNIVERSAL_STRING_TAG |
static int |
UTF8_STRING_TAG |
static int |
VIDEOTEX_STRING_TAG |
static int |
VISIBLE_STRING_TAG |
Constructor and Description |
---|
BerIdentifier() |
BerIdentifier(int identifierClass,
int primitive,
int tagNumber) |
Modifier and Type | Method and Description |
---|---|
int |
decode(java.io.InputStream is) |
int |
decodeAndCheck(java.io.InputStream is)
Decodes the Identifier from the ByteArrayInputStream and throws an Exception if it is not equal to itself.
|
int |
encode(BerByteArrayOutputStream os) |
boolean |
equals(BerIdentifier berIdentifier) |
boolean |
equals(int identifierClass,
int primitive,
int tagNumber) |
java.lang.String |
toString() |
public static final int UNIVERSAL_CLASS
public static final int APPLICATION_CLASS
public static final int CONTEXT_CLASS
public static final int PRIVATE_CLASS
public static final int PRIMITIVE
public static final int CONSTRUCTED
public static final int BOOLEAN_TAG
public static final int INTEGER_TAG
public static final int BIT_STRING_TAG
public static final int OCTET_STRING_TAG
public static final int NULL_TAG
public static final int OBJECT_IDENTIFIER_TAG
public static final int REAL_TAG
public static final int ENUMERATED_TAG
public static final int UTF8_STRING_TAG
public static final int NUMERIC_STRING_TAG
public static final int PRINTABLE_STRING_TAG
public static final int TELETEX_STRING_TAG
public static final int VIDEOTEX_STRING_TAG
public static final int IA5_STRING_TAG
public static final int GENERALIZED_TIME_TAG
public static final int GRAPHIC_STRING_TAG
public static final int VISIBLE_STRING_TAG
public static final int GENERAL_STRING_TAG
public static final int UNIVERSAL_STRING_TAG
public static final int BMP_STRING_TAG
public byte[] identifier
public int identifierClass
public int primitive
public int tagNumber
public BerIdentifier(int identifierClass, int primitive, int tagNumber)
public BerIdentifier()
public int encode(BerByteArrayOutputStream os) throws java.io.IOException
java.io.IOException
public int decode(java.io.InputStream is) throws java.io.IOException
java.io.IOException
public int decodeAndCheck(java.io.InputStream is) throws java.io.IOException
is
- the input stream to read the identifier from.java.io.IOException
- if an exception occurs reading the identifier from the stream.public boolean equals(int identifierClass, int primitive, int tagNumber)
public boolean equals(BerIdentifier berIdentifier)
public java.lang.String toString()
toString
in class java.lang.Object