Searched refs:role (Results 1 - 25 of 66) sorted by relevance

123

/glassfish-3.1.2/deployment/dol/src/main/java/com/sun/enterprise/deployment/
H A DRoles.java56 * Add the specified role to the set of roles.
57 * @param the role to be added.
59 public void addRole(Role role); argument
62 * Remove the specified role from the set of roles.
63 * @param the role to be removed.
65 public void removeRole(Role role); argument
H A DMethodPermission.java45 * a role, be unchecked or excluded.
56 private Role role; field in class:MethodPermission
59 * construct a new MethodPermission based on a security role
61 * @param role the security role associated to the method permission
63 public MethodPermission(Role role) { argument
64 this.role = role;
96 * @return true if the method permission is based on a security role
99 return role!
[all...]
H A DSecurityRoleDescriptor.java46 * I am an abstract role..
53 * Construct a SecurityRoleDescriptor from the given role name and description.
60 * Construct a SecurityRoleDescriptor from the given role object.
63 public SecurityRoleDescriptor(Role role) { argument
64 super(role.getName(), role.getDescription());
H A DCMRFieldInfo.java58 public RelationRoleDescriptor role; field in class:CMRFieldInfo
H A DRoleReference.java48 * as defined by the bean developer. The name of a primitive role will appear
65 * Construct a role reference from the given name and description.
72 * Construct the role reference with the same name and rolename the same
84 * @param the role
86 void setRole(Role role) { argument
87 super.setValue(role.getName());
91 * Return the role object from this descriptor.
92 * @return the role.
100 * @return the role name.
116 * @return the role nam
[all...]
/glassfish-3.1.2/verifier/verifier-impl/src/main/java/com/sun/enterprise/tools/verifier/tests/ejb/entity/cmp2/
H A DCmrFieldTest.java98 RelationRoleDescriptor role = cmfDescriptor.getSource();
99 if (role.getOwner().equals(descriptor) && role.getCMRField()!=null) {
101 if (!runIndividualCmrTest(descriptor, role, c, result)) {
109 RelationRoleDescriptor role = cmfDescriptor.getSink();
110 if (role.getOwner().equals(descriptor) && role.getCMRField()!=null) {
112 if (!runIndividualCmrTest(descriptor, role, c, result)) {
H A DCascadeDeleteNotSupportedForManyMany.java67 protected boolean runIndividualCmrTest(Descriptor descriptor, RelationRoleDescriptor role, Class c, Result result) { argument
73 isMany = role.getIsMany();
74 isPartnerMany = (role.getPartner()).getIsMany();
75 cascadeDelete = role.getCascadeDelete();
81 new Object[] {role.getName()}));
H A DCmrFields.java69 protected boolean runIndividualCmrTest(Descriptor descriptor, RelationRoleDescriptor role, Class c, Result result) { argument
76 info = role.getCMRFieldInfo();
86 if (role.getPartner().getIsMany()) {
101 if ((role.getRelationshipDescriptor()).getIsBidirectional()) {
H A DCmrUseCorrectCollectionInterface.java86 new Object[] {info.name, info.role.getCMRFieldType()}));
93 new Object[] {info.name, info.role.getCMRFieldType()}));
/glassfish-3.1.2/verifier/verifier-impl/src/main/java/com/sun/enterprise/tools/verifier/tests/ejb/
H A DSecurityRolesBind.java51 * descriptor, the Application Assembler must bind security role references
60 * descriptor, the Application Assembler must bind security role references
81 Role role = null;
92 role = roleReference.getRole();
93 if (!role.getName().equals("")
94 && !bundleDescriptor.getRoles().contains(role) ) {
95 // print the undefine role
102 "Error: The role [ {0} ] for bean [ {1} ] is undefined.",
103 new Object[] {role.getName(),ejb.getName()}));
114 "The role [ {
[all...]
H A DSecurityIdentityRefs.java50 * Security role references test.
59 * Security role references test.
100 Role role = (Role) roleIterator.next();
101 if (role.getName().equals(identity.getRoleName())) {
108 "Security identity run-as specified identity [ {0} ] role is found in the list of roles",
109 new Object[] {role.getName()}));
119 "Security identity run-as specified identity [ {0} ] role is not valid",
H A DSecurityRolesRefs.java49 * Security role references test.
58 * Security role references test.
80 Role role = null;
91 role = (Role)roleIterator.next();
92 if (role.getName().equals(roleReference.getValue())) {
108 "Erro: The security role reference [ {0} ] has no corresponding linked security role name [ {1} ]",
120 "The security role reference [ {0} ] has corresponding linked security role name [ {1} ]",
131 "There are no role reference
[all...]
/glassfish-3.1.2/deployment/dol/src/main/java/com/sun/enterprise/deployment/interfaces/
H A DSecurityRoleMapper.java52 * This interface defines the protocol used by the DOL to access the role
62 * Set the role mapper application name
68 * @return the role mapper application name
78 * @rturns an enumeration of Principals assigned to the given role
85 * Returns an enumeration of Groups assigned to the given role
91 * Assigns a Principal to the specified role.
93 * @param p The principal that needs to be assigned to the role.
100 * Remove the given role-principal mapping
101 * @param role, Role object
104 public void unassignPrincipalFromRole(Role role, Principa argument
110 unassignRole(Role role) argument
[all...]
/glassfish-3.1.2/web/web-core/src/main/java/org/apache/catalina/realm/
H A DGenericPrincipal.java100 * specified username and password, with the specified role names
189 * Does the user represented by this Principal possess the specified role?
191 * @param role Role to be tested
193 public boolean hasRole(String role) { argument
195 if("*".equals(role)) // Special 2.4 role meaning everyone
197 if (role == null)
199 return (Arrays.binarySearch(roles, role) >= 0);
/glassfish-3.1.2/deployment/dol/src/main/java/com/sun/enterprise/deployment/annotation/handlers/
H A DRolesAllowedHandler.java86 Role role = new Role(roleName);
87 // add role if not exists
88 ejbDesc.getEjbBundleDescriptor().addRole(role);
89 ejbDesc.addPermissionedMethod(new MethodPermission(role), md);
H A DDeclareRolesHandler.java90 Role role = new Role(roleName);
91 ejbDescriptor.getEjbBundleDescriptor().addRole(role);
116 Role role = new Role(roleName);
117 webBundleDesc.addRole(role);
H A DRunAsHandler.java88 Role role = new Role(roleName);
90 ejbDesc.getEjbBundleDescriptor().addRole(role);
113 Role role = new Role(roleName);
115 webDesc.getWebBundleDescriptor().addRole(role);
/glassfish-3.1.2/web/web-core/src/main/java/org/apache/tomcat/util/modeler/
H A DOperationInfo.java131 protected String role = "operation"; field in class:OperationInfo
178 * The role of this operation ("getter", "setter", "operation", or
182 return (this.role);
185 public void setRole(String role) { argument
186 this.role = role;
259 descriptor.setField("role", getRole());
/glassfish-3.1.2/ejb/ejb-internal-api/src/main/java/org/glassfish/ejb/api/
H A DEJBInvocation.java105 * @return true if the SecurityManager reports that the caller is in role
107 public boolean isCallerInRole(String role); argument
/glassfish-3.1.2/ejb/javax.ejb/src/main/java/javax/ejb/
H A DEJBContext.java128 * Test if the caller has a given role.
133 * @param role The <code>java.security.Identity</code> of the role to be tested.
135 * @return True if the caller has the specified role.
139 boolean isCallerInRole(Identity role); argument
142 * Test if the caller has a given security role.
144 * @param roleName The name of the security role. The role must be one of
147 * @return True if the caller has the specified role.
/glassfish-3.1.2/security/core/src/main/java/com/sun/enterprise/security/acl/
H A DRoleMapper.java146 _logger.log(Level.FINE, "Default role is: " + defaultRoleName);
204 * @param principal A principal that corresponds to the role
205 * @param role A role corresponding to this principal
207 private void addRoleToPrincipal(final Principal principal, String role) { argument
209 Subject subject = roleToSubject.get(role);
218 roleToSubject.put(role, sub);
222 * Remove the given role-principal mapping
223 * @param role, Role object
226 public void unassignPrincipalFromRole(Role role, Principa argument
[all...]
/glassfish-3.1.2/deployment/dol/src/main/java/com/sun/enterprise/deployment/node/web/
H A DAuthConstraintNode.java91 // role-name*
93 SecurityRoleDescriptor role = (SecurityRoleDescriptor) roles.nextElement();
94 appendTextChild(myNode, WebTagNames.ROLE_NAME, role.getName());
/glassfish-3.1.2/verifier/verifier-impl/src/main/java/com/sun/enterprise/tools/verifier/tests/app/
H A DAppSecurityRole.java52 * The Application role-name element contains the name of a security role.
59 * The Application role-name element contains the name of a security role.
73 // get the security role name's in this app
78 Role role = (Role) itr.next();
79 String roleName = role.getName();
90 "The security role name [ {0} ] found within application [ {1} ]",
98 "Error: The security role name [ {0} ] not found within application [ {1} ]",
110 "There are no role
[all...]
/glassfish-3.1.2/security/core/src/main/java/com/sun/enterprise/security/
H A DSecurityManager.java72 * has the specified role.
73 * @param The EJB developer specified "logical role".
75 public boolean isCallerInRole(String role); argument
/glassfish-3.1.2/webservices/jsr109-impl/src/main/java/org/glassfish/webservices/
H A DWebServiceContextImpl.java124 public boolean isUserInRole(String role) { argument
129 boolean res = inv.isCallerInRole(role);
133 boolean ret = this.jaxwsContextDelegate.isUserInRole(role);
139 ret = secServ.isUserInRole((WebModule)mgr.getCurrentInvocation().getContainer(), p, servletName, role);

Completed in 26 milliseconds

123