Code example for InvalidKeyException

Methods: toString

0
			status=true;
		} catch (IllegalBlockSizeException e) {
			Log.e(TAG,"decrypt(): "+e.toString());
		} catch (BadPaddingException e) {
			Log.e(TAG,"decrypt(): "+e.toString());
		} catch (InvalidKeyException e) {
			Log.e(TAG,"decrypt(): "+e.toString());
		} catch (InvalidAlgorithmParameterException e) {
			Log.e(TAG,"decrypt(): "+e.toString());
		} 
	 
		return new String(plaintext);
	} 
 
	/** 
	 * Status of the last encrypt or decrypt. 
	 *  
	 * @return true if last operation was successful 
	 */ 
	public boolean getStatus() { 
		return status;