01: /*
02: * JOSSO: Java Open Single Sign-On
03: *
04: * Copyright 2004-2008, Atricore, Inc.
05: *
06: * This is free software; you can redistribute it and/or modify it
07: * under the terms of the GNU Lesser General Public License as
08: * published by the Free Software Foundation; either version 2.1 of
09: * the License, or (at your option) any later version.
10: *
11: * This software is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14: * Lesser General Public License for more details.
15: *
16: * You should have received a copy of the GNU Lesser General Public
17: * License along with this software; if not, write to the Free
18: * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
19: * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
20: */
21: package org.josso.gateway.signon;
22:
23: /**
24: * @author <a href="mailto:sgonzalez@josso.org">Sebastian Gonzalez Oyuela</a>
25: * @version $Id: Constants.java 508 2008-02-18 13:32:29Z sgonzalez $
26: */
27:
28: public interface Constants extends org.josso.gateway.Constants {
29:
30: /**
31: * Reqeuest parameter representing an SSO command.
32: * Value : sso_cmd
33: */
34: public static final String PARAM_JOSSO_CMD = "josso_cmd";
35:
36: /**
37: * Request parameter to set the back-to url used after a successfull login.
38: */
39: public static final String PARAM_JOSSO_BACK_TO = "josso_back_to";
40:
41: /**
42: * Request parameter to set the on-error to url used after an invalid login.
43: */
44: public static final String PARAM_JOSSO_ON_ERROR = "josso_on_error";
45:
46: /**
47: * Request parameter to set for notifying the relaying profile
48: */
49: public static final String PARAM_RELAY_PROFILE = "josso_relay_profile";
50:
51: /**
52: * Key to store a String representing the URL were the user should be redirected to after a successfull login.
53: */
54: public static final String KEY_JOSSO_BACK_TO = "org.josso.gateway.backToUrl";
55:
56: /**
57: * Key to store a String representing the URL were the user should be redirected to after an invalid login attempt
58: */
59: public static final String KEY_JOSSO_ON_ERROR = "org.josso.gateway.onErrorUrl";
60:
61: /**
62: * Key used to store the SSOGateway instance in the application context.
63: * Value : org.josso.gateway
64: */
65: public static final String KEY_JOSSO_GATEWAY = "org.josso.gateway";
66:
67: /**
68: * Key to store a SSOUser instance in any scope.
69: */
70: public static final String KEY_JOSSO_USER = "org.josso.gateway.user";
71:
72: /**
73: * Key to store a SSORole[] instance in any scope.
74: */
75: public static final String KEY_JOSSO_USER_ROLES = "org.josso.gateway.userRoles";
76: /**
77: * Key to store a SSOUser instance in any scope.
78: */
79: public static final String KEY_JOSSO_SESSION = "org.josso.gateway.session";
80:
81: /**
82: * Key to store a String representing the relay profile
83: */
84: public static final String KEY_JOSSO_RELAY_PROFILE = "org.josso.gateway.relayProfile";
85:
86: /**
87: * Identifier for inbound relay profile
88: */
89: public static final String INBOUND_RELAY_PROFILE = "inbound";
90:
91: /**
92: * Identifier for outbound relay profile
93: */
94: public static final String OUTBOUND_RELAY_PROFILE = "outbound";
95:
96: }
|