KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > cowsultants > itracker > ejb > client > util > AuthenticationConstants


1 /*
2  * This software was designed and created by Jason Carroll.
3  * Copyright (c) 2002, 2003, 2004 Jason Carroll.
4  * The author can be reached at jcarroll@cowsultants.com
5  * ITracker website: http://www.cowsultants.com
6  * ITracker forums: http://www.cowsultants.com/phpBB/index.php
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it only under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  */

18
19 package cowsultants.itracker.ejb.client.util;
20
21
22 /**
23   * This interface defines some constants used by the pluggable authentication system.
24   */

25 public interface AuthenticationConstants {
26     /** The authentication information is of an unknown type, or not provided. The authenticator
27         in this case will be the request object if available. */

28     public static final int AUTH_TYPE_UNKNOWN = -1;
29     /** The authentication information is a String object containing the plaintext password. */
30     public static final int AUTH_TYPE_PASSWORD_PLAIN = 1;
31     /** The authentication information is a String object containing the SHA1 hash of the
32         plaintext password. */

33     public static final int AUTH_TYPE_PASSWORD_ENC = 2;
34     /** The authentication information is an String object containing shared secret of
35         some type, or a unique key. */

36     public static final int AUTH_TYPE_SHARED_SECRET = 3;
37     /** The authentication information is a Certificate object containing the certificate
38         presented by the user. */

39     public static final int AUTH_TYPE_CERTIFICATE = 4;
40     /** The authentication information is a HttpServletRequest object containing the required
41         authentication information in request or session attributes/parameters. */

42     public static final int AUTH_TYPE_REQUEST = 5;
43
44     /** The type of update being performed only includes core profile information, and possibly the password */
45     public static final int UPDATE_TYPE_CORE = 1;
46     /** The type of update being performed only includes permission information. All permissions are being updated. */
47     public static final int UPDATE_TYPE_PERMISSION_SET = 2;
48     /** The type of update being performed only includes permission information. Only additional permissions are being added. */
49     public static final int UPDATE_TYPE_PERMISSION_ADD = 3;
50     /** The type of update being performed only includes user preferences */
51     public static final int UPDATE_TYPE_PREFERENCE = 4;
52
53
54
55     /** The authentication request is being made from an unknown location */
56     public static final int REQ_SOURCE_UNKNOWN = -1;
57     /** The authentication request is being made from the supplied web application */
58     public static final int REQ_SOURCE_WEB = 1;
59     /** The authentication request is being made from an API call */
60     public static final int REQ_SOURCE_API = 2;
61 }
62
Popular Tags