Lines Matching defs:permissions

50  * of permissions when being executed on behalf of a given set of Principals.
52 * A static set of permissions can be bound to a ProtectionDomain when it is
53 * constructed; such permissions are granted to the domain regardless of the
56 * mapped to a set of permissions by the current Policy whenever a permission
145 private PermissionCollection permissions;
147 /* if the permissions object has AllPermission */
161 * Permissions. If the permissions object is not null, then
165 * The permissions granted to this domain are static, i.e.
171 * @param permissions the permissions granted to this domain
174 PermissionCollection permissions) {
176 if (permissions != null) {
177 this.permissions = permissions;
178 this.permissions.setReadOnly();
179 if (permissions instanceof Permissions &&
180 ((Permissions)permissions).allPermission != null) {
192 * permissions object is not null, then {@code setReadOnly()}
195 * The permissions granted to this domain are dynamic, i.e.
197 * They include both the static permissions passed to this constructor,
198 * and any permissions granted to this domain by the current Policy at the
204 * {@code Policy} to actively associate the permissions granted to
210 * @param permissions the permissions granted to this domain
220 PermissionCollection permissions,
224 if (permissions != null) {
225 this.permissions = permissions;
226 this.permissions.setReadOnly();
227 if (permissions instanceof Permissions &&
228 ((Permissions)permissions).allPermission != null) {
271 * Returns the static permissions granted to this domain.
273 * @return the static set of permissions for this domain which may be null.
278 return permissions;
282 * Returns true if this domain contains only static permissions
286 * @return true if this domain contains only static permissions.
295 * Check and see if this ProtectionDomain implies the permissions
298 * The set of permissions evaluated is a function of whether the
299 * ProtectionDomain was constructed with a static set of permissions
300 * or it was bound to a dynamically mapped set of permissions.
326 if (permissions != null) {
327 return permissions.implies(perm);
371 // inside and it also covers the static permissions.
384 if (permissions != null) {
385 if (permissions.implies(perm)) {
392 return permissions.implies(p2);
445 * Return true (merge policy permissions) in the following cases:
486 return permissions;
505 // Build a vector of domain permissions for subsequent merge
506 if (permissions != null) {
507 synchronized (permissions) {
508 e = permissions.elements();
516 // Build a vector of Policy permissions for subsequent merge
527 if (perms != null && permissions != null) {
532 synchronized (permissions) {
533 e = permissions.elements(); // domain vs policy
542 // The equals() method on some permissions
557 // the order of adding to merged perms and permissions
564 if (permissions != null) {