GUACAMOLE-362: Fix style and error messages.

This commit is contained in:
Nick Couchman authored and Nick Couchman committed 2017-10-27 13:05:13 -04:00
1 parent bd57938dff
commit ab41f44100
2 files changed
+3 -2

No files matched your search

@@ -63,6 +63,7 @@ public class TicketValidationService {
*
* @param ticket
* The ID ticket to validate and parse.
*
* @param credentials
* The Credentials object to store retrieved username and
* password values in.
@@ -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("Key is not in expected RSA algorithm.", e);
throw new GuacamoleServerException("RSA algorithm is not available.", e);
}
catch (InvalidKeySpecException e) {
throw new GuacamoleServerException("KeyS is not in expected PKCS8 encoding.", e);
throw new GuacamoleServerException("Key is not in expected PKCS8 encoding.", e);
}
}