mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 05:07:41 +00:00
GUACAMOLE-197: Remove unnecessarily precise method calls.
This commit is contained in:
@@ -99,7 +99,7 @@ public class AuthenticationProviderService {
|
|||||||
|
|
||||||
// We have the required attributes - convert to strings and then generate the additional login box/field
|
// We have the required attributes - convert to strings and then generate the additional login box/field
|
||||||
String replyMsg = replyAttr.toString();
|
String replyMsg = replyAttr.toString();
|
||||||
String radiusState = javax.xml.bind.DatatypeConverter.printHexBinary(stateAttr.getValue().getBytes());
|
String radiusState = DatatypeConverter.printHexBinary(stateAttr.getValue().getBytes());
|
||||||
Field radiusResponseField = new RadiusChallengeResponseField(replyMsg);
|
Field radiusResponseField = new RadiusChallengeResponseField(replyMsg);
|
||||||
Field radiusStateField = new RadiusStateField(radiusState);
|
Field radiusStateField = new RadiusStateField(radiusState);
|
||||||
|
|
||||||
@@ -157,7 +157,7 @@ public class AuthenticationProviderService {
|
|||||||
// This is a response to a previous challenge, authenticate with that.
|
// This is a response to a previous challenge, authenticate with that.
|
||||||
else {
|
else {
|
||||||
try {
|
try {
|
||||||
byte[] stateBytes = javax.xml.bind.DatatypeConverter.parseHexBinary(request.getParameter(RadiusStateField.PARAMETER_NAME));
|
byte[] stateBytes = DatatypeConverter.parseHexBinary(request.getParameter(RadiusStateField.PARAMETER_NAME));
|
||||||
radPack = radiusService.sendChallengeResponse(credentials.getUsername(),
|
radPack = radiusService.sendChallengeResponse(credentials.getUsername(),
|
||||||
challengeResponse,
|
challengeResponse,
|
||||||
stateBytes);
|
stateBytes);
|
||||||
|
Reference in New Issue
Block a user