- public String decrypt64s(String data, boolean zip) throws IOException {
- return new String(decrypt(StringUtils.unbase64(data, zip)), "UTF-8");
+ public String decrypt64s(String data, boolean zip) throws SSLException {
+ try {
+ return new String(decrypt(StringUtils.unbase64(data, zip)), "UTF-8");
+ } catch (UnsupportedEncodingException e) {
+ // UTF-8 is required in all confirm JVMs
+ e.printStackTrace();
+ return null;
+ } catch (IOException e) {
+ // not exactly true, but we consider here that this error is a crypt
+ // error, not a normal I/O error
+ throw new SSLException(e);
+ }