KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > cocoon > webapps > authentication > AuthenticationConstants


1 /*
2  * Copyright 1999-2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.apache.cocoon.webapps.authentication;
17
18 /**
19  * The <code>Constants</code> used throughout the core of the authentication
20  * framework.
21  *
22  * @author <a HREF="mailto:cziegeler@s-und-n.de">Carsten Ziegeler</a>
23  * @version CVS $Id: AuthenticationConstants.java 30932 2004-07-29 17:35:38Z vgritsenko $
24 */

25 public interface AuthenticationConstants {
26
27     /** The name of the authentication context. */
28     String JavaDoc SESSION_CONTEXT_NAME = "authentication";
29
30     /** Logout mode: session is terminated immediately */
31     int LOGOUT_MODE_IMMEDIATELY = 0;
32     
33     /** Logout mode: session is terminated if not used anymore (by the
34      * session or the authentication framework */

35     int LOGOUT_MODE_IF_UNUSED = 1;
36
37     /** Logout mode: session is terminated if the user is not authenticated
38      * to any handler anymore. */

39     int LOGOUT_MODE_IF_NOT_AUTHENTICATED = 2;
40 }
41
42
43
Popular Tags