1 56 package org.opencrx.kernel.generic; 57 58 public class SecurityKeys { 59 60 public static final String ADMIN_PRINCIPAL = "admin"; 61 public static final String ROOT_PRINCIPAL = "admin-Root"; 62 public static final String ADMIN_USER_ID = "admin"; 63 public static final String LOADER_PRINCIPAL = "loader"; 64 public static final String LOADER_USER_ID = "loader"; 65 public static final String USER_GROUP_UNSPECIFIED = "Unspecified"; 66 public static final String USER_GROUP_ADMINISTRATORS = "Administrators"; 67 public static final String USER_GROUP_USERS = "Users"; 68 public static final String USER_GROUP_UNASSIGNED = "Unassigned"; 69 public static final String ROOT_ADMINISTRATORS_GROUP = "Root:Administrators"; 70 public static final String ROOT_ROOTS_GROUP = "Root:Roots"; 71 public static final String PRINCIPAL_GROUP_ADMINISTRATORS = "Administrators"; 72 public static final String USER_SUFFIX = "User"; 73 74 public final static String PRINCIPAL_TYPE_GROUP = "org:opencrx:security:realm1:PrincipalGroup"; 76 public final static String PRINCIPAL_TYPE_USER = "org:opencrx:security:realm1:User"; 77 public final static String PRINCIPAL_TYPE_PRINCIPAL = "org:opencrx:security:realm1:Principal"; 78 79 public static final String ENABLE_SECURITY_PROPERTY = "org.opencrx.kernel.layer.model.SecurityContext.enable"; 81 public static final String ID_SEPARATOR_PROPERTY = "org.opencrx.kernel.generic.SecurityKeys.ID_SEPARATOR"; 82 public static final String ID_SEPARATOR = System.getProperty(ID_SEPARATOR_PROPERTY) == null ? "-" : System.getProperty(ID_SEPARATOR_PROPERTY); 83 84 public static final String PASSWORD_ENCODING_SCHEME = "Base64:"; 86 87 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 | Popular Tags |