public final class Asn1BerParser extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> T |
parse(ByteBuffer encoded,
Class<T> containerClass)
Returns the ASN.1 structure contained in the BER encoded input.
|
static <T> List<T> |
parseImplicitSetOf(ByteBuffer encoded,
Class<T> elementClass)
Returns the implicit
SET OF contained in the provided ASN.1 BER input. |
public static <T> T parse(ByteBuffer encoded, Class<T> containerClass) throws Asn1DecodingException
encoded - encoded input. If the decoding operation succeeds, the position of this buffer
is advanced to the first position following the end of the consumed structure.containerClass - class describing the structure of the input. The class must meet the
following requirements:
Asn1DecodingException - if the input could not be decoded into the specified Java
objectpublic static <T> List<T> parseImplicitSetOf(ByteBuffer encoded, Class<T> elementClass) throws Asn1DecodingException
SET OF contained in the provided ASN.1 BER input. Implicit means
that this method does not care whether the tag number of this data structure is
SET OF and whether the tag class is UNIVERSAL.
Note: The returned type is List rather than Set because ASN.1
SET may contain duplicate elements.
encoded - encoded input. If the decoding operation succeeds, the position of this buffer
is advanced to the first position following the end of the consumed structure.elementClass - class describing the structure of the values/elements contained in this
container. The class must meet the following requirements:
Asn1DecodingException - if the input could not be decoded into the specified Java
objectCopyright © 2019. All rights reserved.