KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > sf > jguard > jee > authentication > http > HttpConstants


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 JavaDoc DEBUG = "debug";
39
40     public final static String JavaDoc WEBAPP_HOME_PATH="webappHome";
41
42     public final static String JavaDoc AUTHN_UTILS = "authenticationUtils";
43     public final static String JavaDoc AUTHZ_UTILS = "authorizationUtils";
44
45     public final static String JavaDoc USERS_IN_SESSION= "sessionList";
46     //fields names used in FORM authentication
47
public final static String JavaDoc LOGIN_FIELD = "loginField";
48     public final static String JavaDoc PASSWORD_FIELD = "passwordField";
49
50     //uri used to configure jGuard in a webapp
51
public final static String JavaDoc FILTER = "filter";
52     public final static String JavaDoc INDEX_URI = "indexURI";
53     public final static String JavaDoc AUTHENTICATION_FAILED_URI = "authenticationFailedURI";
54     public final static String JavaDoc LOGON_PROCESS_URI = "logonProcessURI";
55     public final static String JavaDoc LOGON_URI = "logonURI";
56     public final static String JavaDoc LOGOFF_URIS = "logoffURIs";
57     public final static String JavaDoc LOGOFF_URI = "logoffURI";
58     public final static String JavaDoc ACCESS_DENIED_URI = "accessDeniedURI";
59     public final static String JavaDoc LAST_ACCESS_DENIED_URI = "lastAccessDeniedURI";
60     public final static String JavaDoc REGISTER_PROCESS_URI = "registerProcessURI";
61     public final static String JavaDoc REGISTER_URI = "registerURI";
62     
63     public final static String JavaDoc GO_TO_LAST_ACCESS_DENIED_URI_ON_SUCCESS = "goToLastAccessDeniedUriOnSuccess";
64     
65
66     // authentication schemes List
67
public final static String JavaDoc AUTH_SCHEMES ="authScheme";
68     public final static String JavaDoc AUTH_SCHEME ="authScheme";
69     public final static String JavaDoc CURRENT_AUTH_SCHEME ="currentAuthScheme";
70     
71     
72     //authentication schemes
73
public final static String JavaDoc BASIC_AUTH = "BASIC";
74     public final static String JavaDoc CLIENT_CERT_AUTH = "CLIENT-CERT";
75     public final static String JavaDoc DIGEST_AUTH = "DIGEST";
76     public final static String JavaDoc FORM_AUTH = "FORM";
77
78     //configuration location of webapp configuration of jGuard
79
//AccessFilter location
80
public final static String JavaDoc CONFIGURATION_LOCATION="configurationLocation";
81     //ContextListener locations
82
public final static String JavaDoc DEFAULT_AUTHENTICATION_CONFIGURATION_LOCATION="/WEB-INF/conf/jGuard/authenticationConfiguration.xml";
83     public final static String JavaDoc DEFAULT_AUTHORIZATION_CONFIGURATION_LOCATION="/WEB-INF/conf/jGuard/authorizationConfiguration.xml";
84     public final static String JavaDoc AUTHENTICATION_CONFIGURATION_LOCATION="authenticationConfigurationLocation";
85     public final static String JavaDoc AUTHORIZATION_CONFIGURATION_LOCATION="authorizationConfigurationLocation";
86
87     public static final String JavaDoc LOGIN_EXCEPTION_CLASS = "LoginExceptionClass";
88     public static final String JavaDoc LOGIN_EXCEPTION_MESSAGE = "LoginExceptionMessage";
89
90     public static final String JavaDoc JGUARD_CONFIGURATION = "jGuardConfiguration";
91
92     public static final String JavaDoc REALPATH = "realpath";
93
94     
95
96 }
97
98
Popular Tags