Lines Matching refs:permissions

47  * of permissions when being executed on behalf of a given set of Principals.
49 * A static set of permissions can be bound to a ProtectionDomain when it is
50 * constructed; such permissions are granted to the domain regardless of the
53 * mapped to a set of permissions by the current Policy whenever a permission
104 private PermissionCollection permissions;
106 /* if the permissions object has AllPermission */
122 * Permissions. If the permissions object is not null, then
124 * Permissions object. The only permissions granted to this domain
128 * @param permissions the permissions granted to this domain
131 PermissionCollection permissions) {
133 if (permissions != null) {
134 this.permissions = permissions;
135 this.permissions.setReadOnly();
136 if (permissions instanceof Permissions &&
137 ((Permissions)permissions).allPermission != null) {
149 * permissions object is not null, then <code>setReadOnly()</code>
151 * The permissions granted to this domain are dynamic; they include
152 * both the static permissions passed to this constructor, and any
153 * permissions granted to this domain by the current Policy at the
159 * <code>Policy</code> to actively associate the permissions granted to
166 * @param permissions the permissions granted to this domain
176 PermissionCollection permissions,
180 if (permissions != null) {
181 this.permissions = permissions;
182 this.permissions.setReadOnly();
183 if (permissions instanceof Permissions &&
184 ((Permissions)permissions).allPermission != null) {
227 * Returns the static permissions granted to this domain.
229 * @return the static set of permissions for this domain which may be null.
234 return permissions;
238 * Check and see if this ProtectionDomain implies the permissions
241 * The set of permissions evaluated is a function of whether the
242 * ProtectionDomain was constructed with a static set of permissions
243 * or it was bound to a dynamically mapped set of permissions.
255 * permissions, then the permission will be checked against the
275 if (permissions != null)
276 return permissions.implies(permission);
320 * Return true (merge policy permissions) in the following cases:
361 return permissions;
380 // Build a vector of domain permissions for subsequent merge
381 if (permissions != null) {
382 synchronized (permissions) {
383 e = permissions.elements();
391 // Build a vector of Policy permissions for subsequent merge
402 if (perms != null && permissions != null) {
407 synchronized (permissions) {
408 e = permissions.elements(); // domain vs policy
417 // The equals() method on some permissions
432 // the order of adding to merged perms and permissions
439 if (permissions != null) {