About Question enthuware.ocejws.v6.2.228 :
Posted: Wed Apr 09, 2014 1:13 pm
How about this solution as the third example in the explanation?
The user can input the credentials using an HTML form on the browser.
Code: Select all
@GET
@Path("/usenamepwd")
@Consumes("application/x-www-form-urlencoded")
public String getUsernamePassword(@FormParam ("username") String username, @FormParam("password") String password) {
String username = Base64.base64Decode(username);
String password = Base64.base64Decode(password);
return username + ":"+password;
}