Searched refs:principals (Results 1 - 25 of 35) sorted by relevance

12

/glassfish-3.1.2/connectors/connectors-runtime/src/main/java/com/sun/enterprise/connectors/authentication/
H A DConnectorSecurityMap.java52 private List<String> principals; field in class:ConnectorSecurityMap
58 public ConnectorSecurityMap(String name, List<String> principals, argument
61 this.principals = principals;
95 * @return Returns the principals.
98 return this.principals;
102 * @param principals The principals to set.
104 public void setPrincipals(List<String> principals) { argument
105 this.principals
[all...]
/glassfish-3.1.2/deployment/dol/src/main/java/com/sun/enterprise/deployment/runtime/common/
H A DSecurityRoleMapping.java62 private List<PrincipalNameDescriptor> principals = field in class:SecurityRoleMapping
75 return principals;
79 principals.add(p);
94 *that this method only returns the name of the principals, not their
98 String[] names = new String[principals.size()];
99 for (int i = 0; i < principals.size(); i++) {
100 names[i] = new String(principals.get(i).getName());
H A DWLSecurityRoleAssignment.java62 private List<String> principals = new ArrayList<String>(); field in class:WLSecurityRoleAssignment
83 return principals;
87 principals.add(p);
/glassfish-3.1.2/security/inmemory.jacc.provider/src/main/java/com/sun/enterprise/security/jacc/provider/
H A DRole.java58 Set<Principal> principals; field in class:Role
110 principals = pSet;
124 if (principals != null) {
125 rvalue = principals.contains(p);
134 if (principals == null || principals.isEmpty()) {
140 if (principals.contains(p)) {
H A DGlassfishRoleMapper.java60 * is no way to require 2 or more principals to be in a Role.
138 Principal[] principals, String roleName) throws SecurityException {
140 if (principals == null || principals.length == 0) {
149 for (Principal p : principals) {
167 public boolean arePrincipalsInRole(String pcid, Principal[] principals, argument
169 return arePrincipalsInRole(getInternalMapper(pcid), principals, roleName);
177 public Set<String> getRolesOfPrincipals(String pcid, Principal[] principals) argument
180 if (principals == null || principals
137 arePrincipalsInRole(SecurityRoleMapper srm, Principal[] principals, String roleName) argument
214 toArray(Set principals) argument
224 getRolesOfPrincipals(String pcid, String[] roles, Principal[] principals) argument
[all...]
H A DJACCRoleMapper.java62 boolean arePrincipalsInRole(String pcid, Principal[] principals, argument
68 Set<String> getRolesOfPrincipals(String pcid, Principal[] principals) argument
74 BitSet getRolesOfPrincipals(String pcid, String roles[], Principal[] principals) argument
/glassfish-3.1.2/deployment/dol/src/main/java/com/sun/enterprise/deployment/node/runtime/common/
H A DWLSecurityRoleAssignmentNode.java101 List<String> principals = descriptor.getPrincipalNames();
102 for (int i = 0; i < principals.size(); i++) {
103 appendTextChild(roleMapping, RuntimeTagNames.PRINCIPAL_NAME, principals.get(i));
H A DSecurityRoleMappingNode.java97 List<PrincipalNameDescriptor> principals = descriptor.getPrincipalNames();
98 for (int i = 0; i < principals.size(); i++) {
100 roleMapping, RuntimeTagNames.PRINCIPAL_NAME, principals.get(i));
/glassfish-3.1.2/security/core/src/main/java/com/sun/enterprise/security/provider/
H A DPolicyParser.java59 * which permissions are available for code from various principals)
88 * It also contains the principals associated with the domain.
424 LinkedList principals = null;
467 if (principals == null) {
468 principals = new LinkedList();
527 principals.add
549 if (principals != null) e.principals = principals;
869 public LinkedList principals; field in class:PolicyParser.GrantEntry
[all...]
/glassfish-3.1.2/connectors/admin/src/main/java/org/glassfish/connectors/admin/cli/
H A DCreateConnectorSecurityMap.java81 private List<String> principals; field in class:CreateConnectorSecurityMap
114 if (principals == null && userGroups == null) {
123 if (principals != null && userGroups != null) {
125 "A work-security-map can have either (any number of) group mapping or (any number of) principals" +
126 " mapping but not both. Specify --principals or --usergroups."));
151 if (principals != null) {
152 for (String principal : principals) {
193 if (principals != null) {
194 for (String p : principals) {
/glassfish-3.1.2/deployment/dol/src/main/java/com/sun/enterprise/deployment/node/runtime/connector/
H A DMapElementNode.java103 Principal[] principals = descriptor.getPrincipal();
104 for (int i=0;i<principals.length;i++) {
105 pn.writeDescriptor(mapElementNode, RuntimeTagNames.PRINCIPAL, principals[i]);
/glassfish-3.1.2/tests/amx/src/org/glassfish/admin/amxtest/config/
H A DSecurityMapConfigTest.java101 assert (principalNames != null || userGroupNames != null) : "both principals and usergroups are null";
118 final String[] principals,
123 principals, userGroups);
149 final String[] principals = new String[]{"SecurityMapConfigTest.testCreateRemove"};
156 principals,
113 createInstance( final ConnectorConnectionPoolConfig ccpc, final String name, final String backendPrincipalUsername, final String backendPrincipalPassword, final String[] principals, final String[] userGroups) argument
H A DSecurityServiceConfigTest.java103 assert (principalNames != null || userGroupNames != null) : "both principals and usergroups are null";
120 final String[] principals,
125 principals, userGroups);
151 final String[] principals = new String[]{TEST_NAME};
158 principals,
115 createInstance( final ConnectorConnectionPoolConfig ccpc, final String name, final String backendPrincipalUsername, final String backendPrincipalPassword, final String[] principals, final String[] userGroups) argument
/glassfish-3.1.2/admin/rest/src/main/java/org/glassfish/admin/rest/cli/
H A DDeletePrincipalCommand.java84 if (principals != null) {
85 for (String p : principals) {
H A DCreatePrincipalCommand.java80 protected String[] principals; field in class:CreatePrincipalCommand
103 if (principals != null) {
104 for (String p : principals) {
/glassfish-3.1.2/admingui/jca/src/main/resources/
H A DsecurityMapjs.inc47 if(opt == 'principals') {
74 if(opt == 'principals' ){
84 if(opt == 'principals') {
115 var principals = comp.value;
116 if (principals == null || principals == '') {
H A DconnectorSecurityMapAttr.inc81 <sun:property id="principalsProp" labelAlign="left" noWrap="#{true}" overlapLabel="#{false}" label="$resource{i18njca.connectorSecurityMap.principals}" helpText="$resource{i18njca.connectorSecurityMap.principalsHelp}">
82 <sun:radioButton id="optB" name="usersOption" selected="#{requestScope.usersOptionP}" selectedValue="principals"
83 onClick="javascript: enableSecurityMapFields('principals');"
85 <sun:textField id="principals" columns="$int{55}" maxLength="#{sessionScope.fieldLengths['maxLength.connectorSecurityMap.principals']}" text="#{pageSession.valueMap['principalCommaStr']}" >
H A DworkSecurityMapButtons.inc87 if ('#{usersOptionP}=principals') {
97 //If it is already there, update the entity or add to the new principals list.
132 if ('#{usersOptionP}=principals') {
/glassfish-3.1.2/security/core/src/main/java/com/sun/enterprise/security/web/integration/
H A DWebSecurityManager.java214 String[] principals = srm.getPrincipalName();
215 if (principals != null) {
216 for (String principal : principals) {
228 List<String> principals = sra.getPrincipalNames();
233 for (String principal : principals) {
340 * @param principalSet a set containing the principals to check for authorization
389 Principal[] principals = null;
390 principals = (principalSet == null ? null :
396 if (principals != null) {
397 for (int i=0; i<principals
[all...]
/glassfish-3.1.2/deployment/dol/src/main/java/com/sun/enterprise/deployment/node/runtime/application/
H A DWLApplicationRuntimeNode.java164 List<String> principals = roleMap.getPrincipalNames();
165 for (int i = 0; i < principals.size(); i++) {
166 rm.assignRole(new PrincipalImpl(principals.get(i)),
/glassfish-3.1.2/connectors/work-management/src/main/java/com/sun/enterprise/connectors/work/context/
H A DConnectorCallbackHandler.java158 Set<Principal> principals = executionSubject.getPrincipals();
159 if (principals != null && principals.size() == 1) {
161 for (Principal p : principals) {
202 /* TODO V3 need to merge the principals/maps after calling all the callbacks and then
248 Set<Principal> principals = cpc.getSubject().getPrincipals();
249 for (Principal p : principals) {
/glassfish-3.1.2/admin/config-api/src/main/java/com/sun/enterprise/config/serverbeans/
H A DSecurityMap.java108 * get the list of principals to be mapped to backend-principal
109 * @return list of principals
114 void setPrincipal(List<String> principals) throws PropertyVetoException; argument
/glassfish-3.1.2/admin/rest/src/test/java/org/glassfish/admin/rest/
H A DConnectorsTest.java71 // put("principals", "principal1");
129 put("principals", "principal1");
133 Map<String, String> principals = new HashMap<String, String>() {{
136 put("principals", "p1,p2,p3");
150 response = post(URL_CONNECTOR_CONNECTION_POOL+"/"+connPoolName+"/security-map/"+secMapName+"/principal", principals);
159 principals.put("principals", "p1,p3");
160 response = delete(URL_CONNECTOR_CONNECTION_POOL+"/"+connPoolName+"/security-map/"+secMapName+"/principal", principals);
/glassfish-3.1.2/security/core/src/main/java/com/sun/enterprise/security/acl/
H A DRoleMapper.java248 Set<Principal> principals = roleToPrincipal.get(mrole);
249 if (principals != null) {
250 principals.remove(principal);
251 roleToPrincipal.put(mrole, principals);
292 Set<Principal> principals = roleToPrincipal.get(role);
293 if (principals == null) {
294 principals = new HashSet<Principal>();
296 principals.add(p);
297 roleToPrincipal.put(role, principals);
360 * @param The Role to which the principals ar
[all...]
/glassfish-3.1.2/deployment/dol/src/main/java/com/sun/enterprise/deployment/node/runtime/
H A DEjbBundleRuntimeNode.java172 List<PrincipalNameDescriptor> principals = roleMap.getPrincipalNames();
173 for (int i = 0; i < principals.size(); i++) {
174 rm.assignRole(principals.get(i).getPrincipal(),

Completed in 346 milliseconds

12