public class DerParser extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
ANY |
static int |
APPLICATION |
static int |
BIT_STRING |
static int |
BMP_STRING |
static int |
BOOLEAN |
static int |
CONSTRUCTED |
static int |
CONTEXT |
static int |
ENUMERATED |
static int |
GENERAL_STRING |
static int |
GENERALIZED_TIME |
static int |
GRAPHIC_STRING |
static int |
IA5_STRING |
protected InputStream |
in |
static int |
INTEGER |
static int |
ISO646_STRING |
static int |
NULL |
static int |
NUMERIC_STRING |
static int |
OBJECT_IDENTIFIER |
static int |
OCTET_STRING |
static int |
PRINTABLE_STRING |
static int |
PRIVATE |
static int |
REAL |
static int |
RELATIVE_OID |
static int |
SEQUENCE |
static int |
SET |
static int |
T61_STRING |
static int |
UNIVERSAL |
static int |
UNIVERSAL_STRING |
static int |
UTC_TIME |
static int |
UTF8_STRING |
static int |
VIDEOTEX_STRING |
| Constructor and Description |
|---|
DerParser(byte[] bytes)
Create a new DER decoder from a byte array.
|
DerParser(InputStream in)
Create a new DER decoder from an input stream.
|
public static final int UNIVERSAL
public static final int APPLICATION
public static final int CONTEXT
public static final int PRIVATE
public static final int CONSTRUCTED
public static final int ANY
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 REAL
public static final int ENUMERATED
public static final int RELATIVE_OID
public static final int SEQUENCE
public static final int SET
public static final int NUMERIC_STRING
public static final int PRINTABLE_STRING
public static final int T61_STRING
public static final int VIDEOTEX_STRING
public static final int IA5_STRING
public static final int GRAPHIC_STRING
public static final int ISO646_STRING
public static final int GENERAL_STRING
public static final int UTF8_STRING
public static final int UNIVERSAL_STRING
public static final int BMP_STRING
public static final int UTC_TIME
public static final int GENERALIZED_TIME
protected final InputStream in
public DerParser(InputStream in)
in - The DER encoded streampublic DerParser(byte[] bytes)
bytes - the encoded bytespublic Asn1Object read() throws IOException
Asn1Object.getParser.IOExceptionCopyright © 2023. All rights reserved.