More detailed log message

This commit is contained in:
HungryHobo
2012-07-19 15:13:27 +00:00
parent d0204effa2
commit 3cd0f09a41

View File

@ -73,7 +73,7 @@ public class EmailIdentity extends EmailDestination {
}
}
if (cryptoImpl == null)
throw new InvalidKeyException("Not a valid Email Identity: <" + base64Key + ">");
throw new InvalidKeyException("Not a valid Email Identity, no CryptoImplementation matches length " + base64Key.length() + ": <" + base64Key + ">");
PublicKeyPair publicKeys = cryptoImpl.createPublicKeyPair(base64Key);
String base64PrivateKeys = base64Key.substring(cryptoImpl.getBase64PublicKeyPairLength()); // the two private keys start after the two public keys