/** * Decodes a base 64 String into a String. * <p/> * * @param s String to decode. * @return encoded string. * @throws java.lang.IllegalArgumentException * thrown if the given byte array was not valid com.sun.syndication.io.impl.Base64 encoding. */ public static String decode(String s) throws IllegalArgumentException { return shouldDecodePassword(s) ? Base64Encoder.decode(s.substring(PREFIX.length())) : s; }
/** * Decodes a base 64 String into a String. * <p/> * * @param s String to decode. * @return encoded string. * @throws java.lang.IllegalArgumentException * thrown if the given byte array was not valid com.sun.syndication.io.impl.Base64 encoding. */ public static String decode(String s) throws IllegalArgumentException { return shouldDecodePassword(s) ? Base64Encoder.decode(s.substring(PREFIX.length())) : s; }