Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
titleLoginController
    protected ModelAndView processFormSubmission(final HttpServletRequest request, final HttpServletResponse response, final Object object,
        final BindException errors) throws Exception {
        final Credentials credentials = (Credentials)object;
        
        this.credentialsBinder.bind(request, credentials);

        final String ticketGrantingTicketId = this.centralAuthenticationService.createTicketGrantingTicket(credentials);
        final String service = request.getParameter(WebConstants.SERVICE);
        final boolean warn = StringUtils.hasText(request.getParameter(WebConstants.WARN));
Code Block
titleLoginForm


public class LoginForm {
    private String service;
    private boolean warn;
    
    /** 
     * Set the Service to which the requestor seeks to authenticate.
     */
    public void setService(String service) {
        this.service = service;
    }

    /**
     * Set whether the user would like to be warned upon Single Sign On to subsequent services.
     */
    public void setWarn(boolean warn) {
        this.warn = warn;
    }

 ... and corresponding getters

}

Copyright notice

Cited code snippets from The Spring Framework are used here for the purpose of explaining CAS 3's usage of this framework. The Spring Framework is subject to license agreement.