View Javadoc

1   // ========================================================================
2   // Copyright (c) 2000-2009 Mort Bay Consulting Pty. Ltd.
3   // ------------------------------------------------------------------------
4   // All rights reserved. This program and the accompanying materials
5   // are made available under the terms of the Eclipse Public License v1.0
6   // and Apache License v2.0 which accompanies this distribution.
7   // The Eclipse Public License is available at 
8   // http://www.eclipse.org/legal/epl-v10.html
9   // The Apache License v2.0 is available at
10  // http://www.opensource.org/licenses/apache2.0.php
11  // You may elect to redistribute this code under either of these licenses. 
12  // ========================================================================
13  
14  package org.eclipse.jetty.plus.jaas.callback;
15  
16  import java.util.List;
17  
18  import javax.security.auth.callback.Callback;
19  
20  
21  /**
22   * 
23   * RequestParameterCallback
24   * 
25   * Allows a JAAS callback handler to access any parameter from the j_security_check FORM.
26   * This means that a LoginModule can access form fields other than the j_username and j_password
27   * fields, and use it, for example, to authenticate a user.
28   *
29   * 
30   * @version $Revision: 4780 $ $Date: 2009-03-17 16:36:08 +0100 (Tue, 17 Mar 2009) $
31   *
32   */
33  public class RequestParameterCallback implements Callback
34  {
35      private String _paramName;
36      private List _paramValues;
37      
38      public void setParameterName (String name)
39      {
40          _paramName = name;
41      }
42      public String getParameterName ()
43      {
44          return _paramName;
45      }
46      
47      public void setParameterValues (List values)
48      {
49          _paramValues = values;
50      }
51      
52      public List getParameterValues ()
53      {
54          return _paramValues;
55      }
56  }