public String decryptAsString(final String encodedJSON) {
    try {
      byte[] decrypted = decrypt(encodedJSON);
      return new String(decrypted, "UTF8");
    } catch (Exception ex) {
      throw OException.wrapException(new OSecurityException("OSymmetricKey.decryptAsString() Exception: " + ex.getMessage()), ex);
    }
  }
public String decryptAsString(final String encodedJSON) {
    try {
      byte[] decrypted = decrypt(encodedJSON);
      return new String(decrypted, "UTF8");
    } catch (Exception ex) {
      throw OException.wrapException(new OSecurityException("OSymmetricKey.decryptAsString() Exception: " + ex.getMessage()), ex);
    }
  }
public String decryptAsString ( final String encodedJSON ) { try { byte [ ] decrypted = decrypt ( encodedJSON ) ; return new String ( decrypted , "UTF8" ) ; } catch ( Exception ex ) { throw OException . wrapException ( new OSecurityException ( "OSymmetricKey.decryptAsString() Exception: " + ex . getMessage ( ) ) , ex ) ; } }
This method decrypts the Base64-encoded JSON document using the specified algorithm and cipher transformation.

@param encodedJSON The Base64-encoded JSON document.

@return The decrypted array of bytes as a UTF8 String or null if not successful.
This method decrypts the Base64 - encoded JSON document using the specified algorithm and cipher transformation .