java.lang.Object
io.clonecloudstore.common.standard.system.BaseXx

public final class BaseXx extends Object
Base16, Base32 and Base64 codecs
  • Field Details Link icon

  • Method Details Link icon

    • getBase16 Link icon

      public static String getBase16(byte[] bytes)
      Parameters:
      bytes - to transform
      Returns:
      the Base 16 representation Without Padding representation
      Throws:
      CcsInvalidArgumentRuntimeException - if argument is not compatible
    • getBase16 Link icon

      public static String getBase16(byte[] bytes, int offset, int size)
      Parameters:
      bytes - to transform
      offset - offset to start from
      size - size to use from offset
      Returns:
      the Base 16 representation Without Padding representation
      Throws:
      CcsInvalidArgumentRuntimeException - if argument is not compatible
    • getBase32 Link icon

      public static String getBase32(byte[] bytes)
      Parameters:
      bytes - to transform
      Returns:
      the Base 32 representation Without Padding representation
      Throws:
      CcsInvalidArgumentRuntimeException - if argument is not compatible
    • getBase32 Link icon

      public static String getBase32(byte[] bytes, int offset, int size)
      Parameters:
      bytes - to transform
      offset - offset to start from
      size - size to use from offset
      Returns:
      the Base 32 representation Without Padding representation
      Throws:
      CcsInvalidArgumentRuntimeException - if argument is not compatible
    • getBase64 Link icon

      public static String getBase64(byte[] bytes)
      Parameters:
      bytes - to transform
      Returns:
      the Base 64 Without Padding representation
      Throws:
      CcsInvalidArgumentRuntimeException - if argument is not compatible
    • getBase64 Link icon

      public static String getBase64(byte[] bytes, int offset, int size)
      Parameters:
      bytes - to transform
      offset - offset to start from
      size - size to use from offset
      Returns:
      the Base 64 Without Padding representation
      Throws:
      CcsInvalidArgumentRuntimeException - if argument is not compatible
    • getBase64Padding Link icon

      public static String getBase64Padding(byte[] bytes)
      Parameters:
      bytes - to transform
      Returns:
      the Base 64 Without Padding representation
      Throws:
      CcsInvalidArgumentRuntimeException - if argument is not compatible
    • getBase64Padding Link icon

      public static String getBase64Padding(byte[] bytes, int offset, int size)
      Parameters:
      bytes - to transform
      offset - offset to start from
      size - size to use from offset
      Returns:
      the Base 64 Without Padding representation
      Throws:
      CcsInvalidArgumentRuntimeException - if argument is not compatible
    • getBase64Url Link icon

      public static String getBase64Url(byte[] bytes)
      Parameters:
      bytes - to transform
      Returns:
      the Base 64 Without Padding representation
      Throws:
      CcsInvalidArgumentRuntimeException - if argument is not compatible
    • getBase64Url Link icon

      public static String getBase64Url(byte[] bytes, int offset, int size)
      Parameters:
      bytes - to transform
      offset - offset to start from
      size - size to use from offset
      Returns:
      the Base 64 Without Padding representation
      Throws:
      CcsInvalidArgumentRuntimeException - if argument is not compatible
    • getFromBase16 Link icon

      public static byte[] getFromBase16(String base16)
      Parameters:
      base16 - to transform
      Returns:
      the byte from Base 16 Without Padding
      Throws:
      CcsInvalidArgumentRuntimeException - if argument is not compatible
    • getFromBase32 Link icon

      public static byte[] getFromBase32(String base32)
      Parameters:
      base32 - to transform
      Returns:
      the byte from Base 32 Without Padding
      Throws:
      CcsInvalidArgumentRuntimeException - if argument is not compatible
    • getFromBase64 Link icon

      public static byte[] getFromBase64(String base64)
      Parameters:
      base64 - to transform
      Returns:
      the byte from Base 64 Without Padding
      Throws:
      CcsInvalidArgumentRuntimeException - if argument is not compatible
    • getFromBase64Padding Link icon

      public static byte[] getFromBase64Padding(String base64)
      Parameters:
      base64 - to transform
      Returns:
      the byte from Base 64 Without Padding
      Throws:
      CcsInvalidArgumentRuntimeException - if argument is not compatible
    • getFromBase64Url Link icon

      public static byte[] getFromBase64Url(String base64)
      Parameters:
      base64 - to transform
      Returns:
      the byte from Base 64 Without Padding
      Throws:
      CcsInvalidArgumentRuntimeException - if argument is not compatible