KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > opencrx > kernel > generic > SecurityKeys


1 /*
2  * ====================================================================
3  * Project: opencrx, http://www.opencrx.org/
4  * Name: $Id: SecurityKeys.java,v 1.13 2005/12/20 12:24:08 wfro Exp $
5  * Description: openCRX application plugin
6  * Revision: $Revision: 1.13 $
7  * Owner: CRIXP AG, Switzerland, http://www.crixp.com
8  * Date: $Date: 2005/12/20 12:24:08 $
9  * ====================================================================
10  *
11  * This software is published under the BSD license
12  * as listed below.
13  *
14  * Copyright (c) 2004-2005, CRIXP Corp., Switzerland
15  * All rights reserved.
16  *
17  * Redistribution and use in source and binary forms, with or without
18  * modification, are permitted provided that the following conditions
19  * are met:
20  *
21  * * Redistributions of source code must retain the above copyright
22  * notice, this list of conditions and the following disclaimer.
23  *
24  * * Redistributions in binary form must reproduce the above copyright
25  * notice, this list of conditions and the following disclaimer in
26  * the documentation and/or other materials provided with the
27  * distribution.
28  *
29  * * Neither the name of CRIXP Corp. nor the names of the contributors
30  * to openCRX may be used to endorse or promote products derived
31  * from this software without specific prior written permission
32  *
33  *
34  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
35  * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
36  * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
37  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
38  * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
39  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
40  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
41  * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
42  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
43  * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
44  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
45  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
46  * POSSIBILITY OF SUCH DAMAGE.
47  *
48  * ------------------
49  *
50  * This product includes software developed by the Apache Software
51  * Foundation (http://www.apache.org/).
52  *
53  * This product includes software developed by contributors to
54  * openMDX (http://www.openmdx.org/)
55  */

56 package org.opencrx.kernel.generic;
57
58 public class SecurityKeys {
59
60     public static final String JavaDoc ADMIN_PRINCIPAL = "admin";
61     public static final String JavaDoc ROOT_PRINCIPAL = "admin-Root";
62     public static final String JavaDoc ADMIN_USER_ID = "admin";
63     public static final String JavaDoc LOADER_PRINCIPAL = "loader";
64     public static final String JavaDoc LOADER_USER_ID = "loader";
65     public static final String JavaDoc USER_GROUP_UNSPECIFIED = "Unspecified";
66     public static final String JavaDoc USER_GROUP_ADMINISTRATORS = "Administrators";
67     public static final String JavaDoc USER_GROUP_USERS = "Users";
68     public static final String JavaDoc USER_GROUP_UNASSIGNED = "Unassigned";
69     public static final String JavaDoc ROOT_ADMINISTRATORS_GROUP = "Root:Administrators";
70     public static final String JavaDoc ROOT_ROOTS_GROUP = "Root:Roots";
71     public static final String JavaDoc PRINCIPAL_GROUP_ADMINISTRATORS = "Administrators";
72     public static final String JavaDoc USER_SUFFIX = "User";
73     
74     // Principal types
75
public final static String JavaDoc PRINCIPAL_TYPE_GROUP = "org:opencrx:security:realm1:PrincipalGroup";
76     public final static String JavaDoc PRINCIPAL_TYPE_USER = "org:opencrx:security:realm1:User";
77     public final static String JavaDoc PRINCIPAL_TYPE_PRINCIPAL = "org:opencrx:security:realm1:Principal";
78             
79     // System Properties
80
public static final String JavaDoc ENABLE_SECURITY_PROPERTY = "org.opencrx.kernel.layer.model.SecurityContext.enable";
81     public static final String JavaDoc ID_SEPARATOR_PROPERTY = "org.opencrx.kernel.generic.SecurityKeys.ID_SEPARATOR";
82     public static final String JavaDoc ID_SEPARATOR = System.getProperty(ID_SEPARATOR_PROPERTY) == null ? "-" : System.getProperty(ID_SEPARATOR_PROPERTY);
83     
84     // Encodings
85
public static final String JavaDoc PASSWORD_ENCODING_SCHEME = "Base64:";
86     
87     //-----------------------------------------------------------------------
88
// Variables
89
//-----------------------------------------------------------------------
90
public static final short ACCESS_LEVEL_NA = 0;
91     public static final short ACCESS_LEVEL_PRIVATE = 1;
92     public static final short ACCESS_LEVEL_BASIC = 2;
93     public static final short ACCESS_LEVEL_DEEP = 3;
94     public static final short ACCESS_LEVEL_GLOBAL = 4;
95 }
96
97 //--- End of File -----------------------------------------------------------
98
Popular Tags