Lines Matching refs:InvalidKeyException
89 * or cannot be used, throw an InvalidKeyException.
97 public static ECKey toECKey(Key key) throws InvalidKeyException {
110 private static void checkKey(ECKey key) throws InvalidKeyException {
121 throw new InvalidKeyException("Neither a public nor a private key");
126 throw new InvalidKeyException("Not an EC key: " + keyAlg);
134 * not possible, throw an InvalidKeyException.
137 protected Key engineTranslateKey(Key key) throws InvalidKeyException {
139 throw new InvalidKeyException("Key must not be null");
143 throw new InvalidKeyException("Not an EC key: " + keyAlg);
150 throw new InvalidKeyException("Neither a public nor a private key");
180 throws InvalidKeyException {
194 throw new InvalidKeyException("Public keys must be instance "
201 throws InvalidKeyException {
214 throw new InvalidKeyException("Private keys must be instance "
259 } catch (InvalidKeyException e) {