View Javadoc

1   /*
2   jGuard is a security framework based on top of jaas (java authentication and authorization security).
3   it is written for web applications, to resolve simply, access control problems.
4   version $Name$
5   http://sourceforge.net/projects/jguard/
6   
7   Copyright (C) 2004  Charles GAY
8   
9   This library is free software; you can redistribute it and/or
10  modify it under the terms of the GNU Lesser General Public
11  License as published by the Free Software Foundation; either
12  version 2.1 of the License, or (at your option) any later version.
13  
14  This library is distributed in the hope that it will be useful,
15  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17  Lesser General Public License for more details.
18  
19  You should have received a copy of the GNU Lesser General Public
20  License along with this library; if not, write to the Free Software
21  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
22  
23  
24  jGuard project home page:
25  http://sourceforge.net/projects/jguard/
26  
27  */
28  package net.sf.jguard.jee.authentication.http;
29  
30  
31  /**
32   * Interface whick regroup all of the <b>HTTP</b> Constants used.
33   * @author <a href="mailto:diabolo512@users.sourceforge.net">Charles Gay</a>
34   * @author <a href="mailto:tandilero@users.sourceforge.net">Maximiliano Batelli</a>
35   *
36   */
37  public interface HttpConstants {
38  	public final static String DEBUG = "debug";
39  
40  	public final static String WEBAPP_HOME_PATH="webappHome";
41  
42  	public final static String USERS_IN_SESSION= "sessionList";
43  	//fields names used in FORM authentication
44      public final static String LOGIN_FIELD = "loginField";
45      public final static String PASSWORD_FIELD = "passwordField";
46  
47      //uri used to configure jGuard in a webapp
48      public final static String AUTHENTICATION_SUCCEED_URI = "authenticationSucceedURI";
49      public final static String AUTHENTICATION_FAILED_URI = "authenticationFailedURI";
50      public final static String LOGON_PROCESS_URI = "logonProcessURI";
51      public final static String LOGON_URI = "logonURI";
52      public final static String LOGOFF_URIS = "logoffURIs";
53      public final static String LOGOFF_URI = "logoffURI";
54      public final static String REGISTER_PROCESS_URI = "registerProcessURI";
55      public final static String REGISTER_URI = "registerURI";
56      
57      public final static String GO_TO_LAST_ACCESS_DENIED_URI_ON_SUCCESS = "goToLastAccessDeniedUriOnSuccess";
58      
59  
60      // authentication schemes List
61      public final static String AUTH_SCHEMES ="authScheme";
62      public final static String AUTH_SCHEME ="authScheme";
63      public final static String CURRENT_AUTH_SCHEME ="currentAuthScheme";
64      
65      
66  	//authentication schemes
67  	public final static String BASIC_AUTH = "BASIC";
68  	public final static String CLIENT_CERT_AUTH = "CLIENT-CERT";
69  	public final static String DIGEST_AUTH = "DIGEST";
70  	public final static String FORM_AUTH = "FORM";
71  
72  	//ContextListener locations
73  	public final static String DEFAULT_AUTHENTICATION_CONFIGURATION_LOCATION="/WEB-INF/conf/jGuard/jGuardAuthentication.xml";
74  	public final static String DEFAULT_AUTHORIZATION_CONFIGURATION_LOCATION="/WEB-INF/conf/jGuard/jGuardAuthorization.xml";
75  	public final static String AUTHENTICATION_CONFIGURATION_LOCATION="authenticationConfigurationLocation";
76  	public final static String AUTHORIZATION_CONFIGURATION_LOCATION="authorizationConfigurationLocation";
77  
78  	public static final String REALPATH = "realpath";
79  
80      
81  
82  	
83  
84  }
85