protected TicketValidator buildCas10TicketValidator(final WebContext context) {
        val cas10TicketValidator = new Cas10TicketValidator(computeFinalPrefixUrl(context));
        cas10TicketValidator.setEncoding(this.encoding);
        cas10TicketValidator.setRenew(this.renew);
        getHttpURLConnectionFactory().ifPresent(cas10TicketValidator::setURLConnectionFactory);
        return cas10TicketValidator;
    }
<p>buildCas10TicketValidator.</p>

@param context a {@link WebContext} object
@return a {@link TicketValidator} object
pac4j-cas/src/main/java/org/pac4j/cas/config/CasConfiguration.java