I've implemented a basic Rest servlet - that accepts HTTP requests - quite easily. Now I have to configure it to work with SSL (i.e. validate certificate upon request) This is the skeleton of the code I have so far:
@RestController
public class MgmtController {
@RequestMapping(value = "/mgmt", method = RequestMethod.POST)
public void post(@RequestBody CustomImpl request, HttpServletRequest httpRequest, response httpResponse) {
System.out.println(request);
}
can it even be done programmatically?
thanks