Class Asn1Util

java.lang.Object
org.apache.kerby.asn1.util.Asn1Util

public final class Asn1Util extends Object
The abstract ASN1 object for all the ASN1 types. It provides basic encoding and decoding utilities.
  • Method Details

    • lengthOfBodyLength

      public static int lengthOfBodyLength(int bodyLength)
    • lengthOfTagLength

      public static int lengthOfTagLength(int tagNo)
    • encodeTag

      public static void encodeTag(ByteBuffer buffer, Tag tag)
    • encodeLength

      public static void encodeLength(ByteBuffer buffer, int bodyLength)
    • readAllLeftBytes

      public static byte[] readAllLeftBytes(ByteBuffer buffer)