public final class Asn1 extends Object
| Modifier and Type | Method and Description |
|---|---|
static Asn1Type |
decode(byte[] content)
Blindly decode content and return the result ASN1 object.
|
static void |
decode(byte[] content,
Asn1Type value)
Decode using specified value container.
|
static Asn1Type |
decode(ByteBuffer content)
See avove.
|
static void |
decode(ByteBuffer content,
Asn1Type value)
See avove.
|
static void |
decodeAndDump(byte[] content)
See avove.
|
static void |
decodeAndDump(ByteBuffer content)
See avove.
|
static void |
decodeAndDump(String hexStr)
Decode first, and then dump out the decoded value.
|
static void |
dump(Asn1Type value)
Dump out a value.
|
static byte[] |
encode(Asn1Type value)
Encode value and return the result.
|
static void |
encode(ByteBuffer buffer,
Asn1Type value)
Encode value into buffer.
|
static Asn1ParseResult |
parse(byte[] content)
Parse content and return parse result.
|
static Asn1ParseResult |
parse(ByteBuffer content)
See avove.
|
static void |
parseAndDump(byte[] content)
See avove.
|
static void |
parseAndDump(ByteBuffer content)
See avove.
|
static void |
parseAndDump(String hexStr)
Parse first, and then dump out the parse result.
|
public static void encode(ByteBuffer buffer, Asn1Type value) throws IOException
buffer - value - IOExceptionpublic static byte[] encode(Asn1Type value) throws IOException
value - IOExceptionpublic static Asn1Type decode(byte[] content) throws IOException
content - IOExceptionpublic static Asn1Type decode(ByteBuffer content) throws IOException
IOExceptionpublic static void decode(byte[] content,
Asn1Type value)
throws IOException
content - value - IOExceptionpublic static void decode(ByteBuffer content, Asn1Type value) throws IOException
IOExceptionpublic static Asn1ParseResult parse(byte[] content) throws IOException
content - IOExceptionpublic static Asn1ParseResult parse(ByteBuffer content) throws IOException
IOExceptionpublic static void dump(Asn1Type value)
value - public static void parseAndDump(String hexStr) throws IOException
hexStr - IOExceptionpublic static void parseAndDump(ByteBuffer content) throws IOException
IOExceptionpublic static void parseAndDump(byte[] content)
throws IOException
IOExceptionpublic static void decodeAndDump(String hexStr) throws IOException
hexStr - IOExceptionpublic static void decodeAndDump(ByteBuffer content) throws IOException
IOExceptionpublic static void decodeAndDump(byte[] content)
throws IOException
IOExceptionCopyright © 2014–2019 The Apache Software Foundation. All rights reserved.