code: public static byte[] decodeString(String encoded) {
          return encoded == null ? null : Base64.getDecoder().decode(encoded);
      }
docs: Decodes a base64 encoded string.
  @param encoded the string to decode
  @return the decoded byte array