Code example for InvalidKeyException

Methods: w

0
			throw new DigSigException(e);
		} catch (NoSuchAlgorithmException e) {
			Log.w(TAG, "Signing failed", e);
			throw new DigSigException(e);
		} catch (InvalidKeyException e) {
			Log.w(TAG, "Signing failed", e);
			throw new DigSigException(e);
		} 
 
		Log.d(TAG, "Signature provider: " + sig.getProvider().getInfo());
		Log.d(TAG, "Signature: " + signatureStr);
 
		return signatureStr;
	} 
 
	/**  
	 * Verify the signature with the public key 
	 *  
	 * @param data 
	 * @param signature