01: /*
02: * (C) Copyright 2000 - 2003 Nabh Information Systems, Inc.
03: *
04: * This program is free software; you can redistribute it and/or
05: * modify it under the terms of the GNU General Public License
06: * as published by the Free Software Foundation; either version 2
07: * of the License, or (at your option) any later version.
08: *
09: * This program is distributed in the hope that it will be useful,
10: * but WITHOUT ANY WARRANTY; without even the implied warranty of
11: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12: * GNU General Public License for more details.
13: *
14: * You should have received a copy of the GNU General Public License
15: * along with this program; if not, write to the Free Software
16: * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17: *
18: */
19:
20: package com.nabhinc.portal.login;
21:
22: /**
23: *
24: *
25: * @author Padmanabh Dabke
26: * (c) 2003 Nabh Information Systems, Inc. All Rights Reserved.
27: */
28: public class LoginConstants {
29:
30: public static final String IS_PROTECTED_PARAM = "isProtected";
31: /**
32: * Session attribute that points to user info (user id + roles)
33: */
34: public static final String USER_INFO_ATTRIBUTE = "com.nabhinc.portal.login.local_user_info";
35:
36: /**
37: * Session attribute that points to the original protected URL
38: * when the user is directed to the login URL.
39: */
40: public static final String ORIGINAL_URL_ATTRIBUTE = "com.nabhinc.portal.login.original_url";
41:
42: public static final String LOGIN_ERROR_ATTRIBUTE = "com.nabhinc.portal.login.error";
43:
44: public static final String LOGIN_URL_PARAM = "loginURL";
45: public static final String DEFAULT_URL_PARAM = "defaultURL";
46: public static final String ERROR_URL_PARAM = "errorURL";
47: public static final String ORIGINAL_URL_PARAM = "origURL";
48: public static final String FORM_USER_NAME_LOGIN_PARAM = "form_username";
49: public static final String FORM_PASSWORD_LOGIN_PARAM = "form_password";
50: public static final String USER_ADMIN_SERVICE_URL_PARAM = "userAdminServiceURL";
51: public static final String AUTH_SERVICE_URL_PARAM = "authServiceURL";
52: public static final String PASSWORD_SQL_PARAM = "passwordSQL";
53: public static final String ROLES_SQL_PARAM = "rolesSQL";
54: public static final String JAAS_LOGIN_APP_NAME = "jaas_login_app_name";
55: public static final String USER_PRINCIPAL_CLASSES = "user_principal_classes";
56: public static final String ROLE_PRINCIPAL_CLASSES = "role_principal_classes";
57: public static final String CALLBACK_HANDLER_CLASS = "callback_handler_class";
58: public static final String COOKIE_MAX_AGE_PARAM = "cookieMaxAge";
59:
60: public static final String USER_NAME_COOKIE = "stringbeans.username";
61: public static final String USER_CREDENTIAL_COOKIE = "stringbeans.credential";
62: public static final String REMEMBER_USER_NAME_PARAM = "remember_username";
63: public static final String REMEMBER_ME_PARAM = "remember_me";
64: public static final String CAPTCHA_ANSWER_PARAM = "stringbeans_captcha_answer";
65: /**
66: * Password field minimum length
67: */
68: public static int PASSWORD_MIN_LENGTH = 4;
69:
70: /**
71: * Password field maximum length
72: */
73: public static int PASSWORD_MAX_LENGTH = 20;
74:
75: }
|