net.jini.security.policy
Class UmbrellaGrantPermission

java.lang.Object
  extended byjava.security.Permission
      extended bynet.jini.security.policy.UmbrellaGrantPermission
All Implemented Interfaces:
Guard, Serializable

public final class UmbrellaGrantPermission
extends Permission

Permission that is specially intepreted by PolicyFileProvider as shorthand for a GrantPermission covering all permissions authorized to a given protection domain. For each protection domain authorized with a set of permissions ps that includes an UmbrellaGrantPermission, PolicyFileProvider adds to ps a GrantPermission for all permissions in ps. All UmbrellaGrantPermission instances are equivalent, and have target names and action strings that are the empty string.

Since:
2.0
Author:
Sun Microsystems, Inc.
See Also:
Serialized Form

Constructor Summary
UmbrellaGrantPermission()
          Creates a new UmbrellaGrantPermission.
 
Method Summary
 boolean equals(Object obj)
          Behaves as specified by Permission.equals(java.lang.Object).
 String getActions()
          Behaves as specified by Permission.getActions().
 int hashCode()
          Behaves as specified by Permission.hashCode().
 boolean implies(Permission permission)
          Behaves as specified by Permission.implies(java.security.Permission).
 
Methods inherited from class java.security.Permission
checkGuard, getName, newPermissionCollection, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UmbrellaGrantPermission

public UmbrellaGrantPermission()
Creates a new UmbrellaGrantPermission.

Method Detail

getActions

public String getActions()
Behaves as specified by Permission.getActions().


implies

public boolean implies(Permission permission)
Behaves as specified by Permission.implies(java.security.Permission).


equals

public boolean equals(Object obj)
Behaves as specified by Permission.equals(java.lang.Object).


hashCode

public int hashCode()
Behaves as specified by Permission.hashCode().



Copyright 2007, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.