Interface Base64


public interface Base64
Base64 interface used by the SDK to encode and decode strings and bytes.
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    decode(String data)
    Decodes base64 string to bytes
    byte[]
    encode(byte[] data)
    Encodes bytes to base64 bytes
    encodeToString(byte[] data)
    Encodes bytes to base64 string
  • Method Details

    • encodeToString

      String encodeToString(byte[] data)
      Encodes bytes to base64 string
      Parameters:
      data - bytes to encode
      Returns:
      encoded string
    • encode

      byte[] encode(byte[] data)
      Encodes bytes to base64 bytes
      Parameters:
      data - bytes to encode
      Returns:
      encoded bytes
    • decode

      byte[] decode(String data)
      Decodes base64 string to bytes
      Parameters:
      data - string to decode
      Returns:
      decoded bytes