mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 21:27:40 +00:00
GUACAMOLE-362: More useful error messages for exceptions in PrivateKey property.
This commit is contained in:
committed by
Nick Couchman
parent
6f04573b84
commit
3ce0980efc
@@ -70,10 +70,10 @@ public abstract class PrivateKeyGuacamoleProperty implements GuacamoleProperty<P
|
||||
throw new GuacamoleServerException("Could not read in the specified key file.", e);
|
||||
}
|
||||
catch (NoSuchAlgorithmException e) {
|
||||
throw new GuacamoleServerException("Specified algorithm does not exist.", e);
|
||||
throw new GuacamoleServerException("Key is not in expected RSA algorithm.", e);
|
||||
}
|
||||
catch (InvalidKeySpecException e) {
|
||||
throw new GuacamoleServerException("Invalid KeySpec initialization.", e);
|
||||
throw new GuacamoleServerException("KeyS is not in expected PKCS8 encoding.", e);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user