@PostMapping(value = "/validate",
        produces = {MediaType.TEXT_XML_VALUE, MediaType.APPLICATION_JSON_VALUE},
        consumes = {MediaType.TEXT_PLAIN_VALUE, MediaType.APPLICATION_FORM_URLENCODED_VALUE})
    @Operation(summary = "Produce a ticket validation response based on CAS Protocol v1",
        parameters = {
            @Parameter(name = "username", required = true, description = "The username"),
            @Parameter(name = "password", required = false, description = "The password"),
            @Parameter(name = "service", required = true, description = "The service")
        })
    public ModelAndView validate(final HttpServletRequest request, final HttpServletResponse response) throws Throwable {
        return renderValidationView(request, response, LegacyValidateController.class);
    }
Validate.

@param request  the request
@param response the response
@throws Throwable the throwable
support/cas-server-support-reports-core/src/main/java/org/apereo/cas/web/report/CasProtocolValidationEndpoint.java