+ AuthCommand auth = pzreq.getSp().getAuth(); \r
+ auth.setParametersInState(new CommandParameter("action","=","login"),\r
+ new CommandParameter("username","=",user.getName()),\r
+ new CommandParameter("password","=",user.getPassword()));\r
+ ClientCommandResponse commandResponse = pz2.getSpClient().send(auth);\r
+ String renamedResponse = renameResponseElement(commandResponse.getResponseString(), "auth");\r
+ commandResponse.setResponseToParse(renamedResponse);\r
+ AuthResponse responseObject = (AuthResponse) ResponseParser.getParser().getDataObject(commandResponse);\r
+ if (ResponseParser.docTypes.contains(responseObject.getType())) {\r
+ pzresp.put(auth.getCommandName(), responseObject);\r
+ }\r
+ String responseStr = commandResponse.getResponseString();\r
+ logger.info(responseStr); \r
+ if (responseStr.contains("FAIL")) {\r
+ user.credentialsAuthenticationSucceeded(false); \r
+ } else {\r
+ user.credentialsAuthenticationSucceeded(true); \r
+ } \r