GUACAMOLE-362: Fix style and error messages.

This commit is contained in:
Nick Couchman
2017-10-01 07:06:20 -04:00
committed by Nick Couchman
parent bd57938dff
commit ab41f44100
2 changed files with 3 additions and 2 deletions

View File

@@ -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.

View File

@@ -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);
}
}