Package org.apache.kerby.asn1.util
Class Asn1Util
java.lang.Object
org.apache.kerby.asn1.util.Asn1Util
The abstract ASN1 object for all the ASN1 types. It provides basic
encoding and decoding utilities.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidencodeLength(ByteBuffer buffer, int bodyLength) static voidencodeTag(ByteBuffer buffer, Tag tag) static intlengthOfBodyLength(int bodyLength) static intlengthOfTagLength(int tagNo) static byte[]readAllLeftBytes(ByteBuffer buffer)
-
Method Details
-
lengthOfBodyLength
public static int lengthOfBodyLength(int bodyLength) -
lengthOfTagLength
public static int lengthOfTagLength(int tagNo) -
encodeTag
-
encodeLength
-
readAllLeftBytes
-