Code example for InvalidKeyException

Methods: getMessage

0
		  return result;
 
	  } catch (NoSuchAlgorithmException e) {
		  throw new SignatureException("Failed to generate HMAC : " + e.getMessage(), e);
	  } catch (InvalidKeyException e) {
		  throw new SignatureException("Failed to generate HMAC : " + e.getMessage(), e);
	  } catch (UnsupportedEncodingException e) {
		  throw new SignatureException("Failed to generate HMAC : " + e.getMessage(), e);
	  } 
  } 
}