/** * Converts a Base64 encoded string to a byte array. * * @param encoded Base64 encoded data. * @return decode binary data; 3 bytes for every 4 chars - minus padding. * @throws IOException if an I/O error occurs reading the data. */ public static byte[] decode(String encoded) throws IOException { return decode(encoded, 0, encoded.length()); }
/** * Converts a Base64 encoded string to a byte array. * * @param encoded Base64 encoded data. * @return decode binary data; 3 bytes for every 4 chars - minus padding. * @throws IOException if an I/O error occurs reading the data. */ public static byte[] decode(String encoded) throws IOException { return decode(encoded, 0, encoded.length()); }
decodedSignature = Base64.decode(signature);
decodedPrivKey = Base64.decode(secrets.getConsumerSecret());
decodedPrivKey = Base64.decode(secrets.getConsumerSecret());