Created
November 5, 2012 11:00
-
-
Save pwntester/4016635 to your computer and use it in GitHub Desktop.
validateCredentials
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public HashMap<String, String> validateCredentials(String userName, | |
String password) throws Exception { | |
RestClient client = new RestClient("https://" + destinationInfo | |
+ "/fourgoats/api/v1/login/authenticate"); | |
client.AddParam("userName", userName); | |
client.AddParam("password", password); | |
client.Execute(RequestMethod.POST, context); | |
return LoginResponse.parseLoginResponse(client.getResponse()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment