-
public final class Asn1DecoderThis represents a decoder helping decode an array of bytes or a hex string into Asn1Nodes. This class tracks the next position for decoding. This class is not thread-safe.
-
-
Constructor Summary
Constructors Constructor Description Asn1Decoder(String hex)Creates a decoder on a hex string. Asn1Decoder(Array<byte> src)Creates a decoder on a byte array. Asn1Decoder(Array<byte> bytes, int offset, int length)Creates a decoder on a byte array slice.
-
Method Summary
Modifier and Type Method Description intgetPosition()booleanhasNextNode()Returns whether the node has a next node. Asn1NodenextNode()Parses the next node. -
-
Method Detail
-
getPosition
int getPosition()
-
hasNextNode
boolean hasNextNode()
Returns whether the node has a next node.
-
nextNode
Asn1Node nextNode()
Parses the next node. If the node is a constructed node, its children will be parsed onlywhen they are accessed, e.g., though getChildren.
-
-
-
-