Class Base16Lower

java.lang.Object
software.amazon.awssdk.utils.internal.Base16Lower

public final class Base16Lower extends Object
A Base 16 codec API, which encodes into hex string in lower case. See http://www.ietf.org/rfc/rfc4648.txt
  • Method Summary

    Modifier and Type
    Method
    Description
    static byte[]
    decode(byte[] b16)
    Decodes the given base 16 encoded bytes.
    static byte[]
    Decodes the given base 16 encoded string, skipping carriage returns, line feeds and spaces as needed.
    static byte[]
    encode(byte[] bytes)
    Returns a base 16 encoded byte array of the given bytes.
    static String
    encodeAsString(byte... bytes)
    Returns a base 16 encoded string (in lower case) of the given bytes.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • encodeAsString

      public static String encodeAsString(byte... bytes)
      Returns a base 16 encoded string (in lower case) of the given bytes.
    • encode

      public static byte[] encode(byte[] bytes)
      Returns a base 16 encoded byte array of the given bytes.
    • decode

      public static byte[] decode(String b16)
      Decodes the given base 16 encoded string, skipping carriage returns, line feeds and spaces as needed.
    • decode

      public static byte[] decode(byte[] b16)
      Decodes the given base 16 encoded bytes.