/openjdk7/jdk/src/share/classes/java/security/ |
H A D | PermissionCollection.java | 35 * <LI> add a permission to the collection using the <code>add</code> method. 36 * <LI> check to see if a particular permission is implied in the 66 * permission to the appropriate collection. 68 * <p>Whenever a permission is added to a heterogeneous PermissionCollection 70 * PermissionCollection of the specified permission's type, the 72 * the <code>newPermissionCollection</code> method on the permission's class 76 * is free to store the permission in any type of PermissionCollection it 79 * that stores the permission objects in a Hashtable. 103 * Adds a permission object to the current collection of permission object 113 add(Permission permission) argument 124 implies(Permission permission) argument [all...] |
H A D | PolicySpi.java | 52 * @param permission check whether this permission is granted to the 55 * @return boolean true if the permission is granted to the domain. 58 (ProtectionDomain domain, Permission permission); 57 engineImplies(ProtectionDomain domain, Permission permission) argument
|
H A D | Permissions.java | 108 * Adds a permission object to the PermissionCollection for the class the 109 * permission belongs to. For example, if <i>permission</i> is a 114 * a new PermissionCollection object (and adds the permission to it) 117 * @param permission the Permission object to add. 125 public void add(Permission permission) { argument 133 pc = getPermissionCollection(permission, true); 134 pc.add(permission); 138 if (permission instanceof AllPermission) { 141 if (permission instanceo 174 implies(Permission permission) argument 498 add(Permission permission) argument 514 implies(Permission permission) argument [all...] |
H A D | UnresolvedPermissionCollection.java | 53 * Key is permission type, value is a list of the UnresolvedPermissions 68 * Adds a permission to this UnresolvedPermissionCollection. 69 * The key for the hash is the unresolved permission's type (class) name. 71 * @param permission the Permission object to add. 74 public void add(Permission permission) argument 76 if (! (permission instanceof UnresolvedPermission)) 77 throw new IllegalArgumentException("invalid permission: "+ 78 permission); 79 UnresolvedPermission up = (UnresolvedPermission) permission; 108 public boolean implies(Permission permission) argument [all...] |
H A D | BasicPermission.java | 44 * The name for a BasicPermission is the name of the given permission 57 * named permission or you don't.) 77 // does this permission have a wildcard at the end? 83 // is this permission the old-style exitVM permission (pre JDK 1.6)? 124 * Name is the symbolic name of the permission, such as 159 * Checks if the specified permission is "implied" by 170 * @param p the permission to check against. 172 * @return true if the passed permission is equal to or 173 * implied by this permission, fals 365 add(Permission permission) argument 408 implies(Permission permission) argument [all...] |
H A D | Permission.java | 36 * for a <code>java.io.FilePermission</code> object, the permission name is 42 * that don't need such a list; you either have the named permission (such 47 * "permission p1 implies permission p2" means that 48 * if one is granted permission p1, one is naturally granted permission p2. 54 * provide methods that can change the state of a permission 72 * Constructs a permission with the specified name. 83 * Implements the guard interface for a permission. The 85 * passing this permission objec 122 implies(Permission permission) argument [all...] |
H A D | Policy.java | 48 * in the Java runtime environment has permission to perform a 148 * <code>SecurityPermission("getPolicy")</code> permission 263 * permission to ensure it's ok to set the Policy. 378 * @exception SecurityException if the caller does not have permission 434 * @exception SecurityException if the caller does not have permission 498 * @exception SecurityException if the caller does not have permission 690 * add static permissions to provided permission collection 706 * the ProtectionDomain and tests whether the permission is 710 * @param permission the Permission object to be tested for implication. 712 * @return true if "permission" i 718 implies(ProtectionDomain domain, Permission permission) argument 836 add(Permission permission) argument 849 implies(Permission permission) argument [all...] |
/openjdk7/jdk/src/share/classes/com/sun/rmi/rmid/ |
H A D | ExecOptionPermission.java | 33 * The ExecOptionPermission class represents permission for rmid to use 44 * does this permission have a wildcard at the end? 68 * Checks if the specified permission is "implied" by 80 * @param p the permission to check against. 82 * @return true if the passed permission is equal to or 83 * implied by this permission, false otherwise. 216 * A ExecOptionPermissionCollection handles comparing a permission like 239 * Adds a permission to the collection. The key for the hash is 240 * permission.name. 242 * @param permission th 251 add(Permission permission) argument 277 implies(Permission permission) argument [all...] |
/openjdk7/jdk/test/javax/print/PrintSE/ |
H A D | PrintSE.sh | 28 # @summary Tests queuePrintJob is sufficient permission. 42 permission java.lang.RuntimePermission "queuePrintJob";
|
/openjdk7/jdk/test/java/lang/ProcessBuilder/ |
H A D | SecurityManagerClinit.java | 43 for (Permission permission : permissions) 44 perms.add(permission);
|
/openjdk7/jdk/test/java/net/URLClassLoader/getresourceasstream/ |
H A D | test.sh | 36 permission java.lang.RuntimePermission "createClassLoader";
|
/openjdk7/jdk/src/share/classes/sun/net/www/protocol/gopher/ |
H A D | Handler.java | 78 Permission permission; field in class:GopherURLConnection 92 if (permission == null) { 96 permission = new SocketPermission(host, "connect"); 98 return permission;
|
/openjdk7/jdk/src/share/classes/sun/net/www/protocol/mailto/ |
H A D | MailToURLConnection.java | 49 Permission permission; field in class:MailToURLConnection 109 if (permission == null) { 112 permission = new SocketPermission(host, "connect"); 114 return permission;
|
/openjdk7/jdk/src/share/classes/javax/security/auth/kerberos/ |
H A D | DelegationPermission.java | 50 * target permission is specified as follows: 56 * To give the "backup" service a proxiable nfs service ticket the target permission 134 * Checks if this Kerberos delegation permission object "implies" the 135 * specified permission. 138 * @param p the permission to check against. 140 * @return true if the specified permission is implied by this object, 279 * expressed in "permission". 283 * @return true if "permission" is a proper subset of a permission in 287 public boolean implies(Permission permission) { argument 314 add(Permission permission) argument [all...] |
H A D | ServicePermission.java | 58 * Granting this permission implies that the caller can use a cached 61 * permission also implies that the TGT can be obtained by an 76 * For example, to specify the permission to access to the TGT to 77 * initiate a security context the permission is constructed as follows: 84 * service the permission is constructed as follows: 89 * For a Kerberized server the action is "accept". For example, the permission 169 * Checks if this Kerberos service permission object "implies" the 170 * specified permission. 173 * @param p the permission to check against. 175 * @return true if the specified permission i 477 implies(Permission permission) argument 521 add(Permission permission) argument [all...] |
/openjdk7/jdk/src/share/classes/javax/management/ |
H A D | MBeanServerPermission.java | 39 The <em>name</em> of the permission specifies the operation requested 40 or granted by the permission. For a granted permission, it can be 42 Otherwise, for a granted or requested permission, it must be one of the 60 The <em>name</em> of the permission can also denote a list of one or more 94 * Map from permission masks to canonical names. This array is 115 @param name the name of the granted permission. It must 128 @param name the name of the granted permission. It must 258 * permission.</p> 268 * <p>The <code>createMBeanServer</code> permission implie 341 add(Permission permission) argument 358 implies(Permission permission) argument [all...] |
/openjdk7/jdk/src/share/classes/java/security/acl/ |
H A D | Acl.java | 54 * principal is considered to have a null (empty) permission set.<p> 57 * particular permission, and a negative entry that denies the 58 * principal the same permission, the result is as though the 59 * permission was never granted or denied. <p> 167 * specified principal, an empty permission set is returned.<p> 169 * <li>Otherwise, the principal's group permission sets are determined. 172 * The group positive permission set is the union of all 174 * The group negative permission set is the union of all 176 * If there is a specific permission that occurs in both 177 * the positive permission se 232 checkPermission(Principal principal, Permission permission) argument [all...] |
/openjdk7/jdk/src/solaris/native/java/util/ |
H A D | FileSystemPreferences.c | 40 jclass thisclass, jstring java_fname, jint permission) { 43 result = chmod(fname, permission); 63 jclass thisclass, jstring java_fname, jint permission, jboolean shared) { 84 fd = open(fname, O_WRONLY|O_CREAT, permission); 39 Java_java_util_prefs_FileSystemPreferences_chmod(JNIEnv *env, jclass thisclass, jstring java_fname, jint permission) argument 62 Java_java_util_prefs_FileSystemPreferences_lockFile0(JNIEnv *env, jclass thisclass, jstring java_fname, jint permission, jboolean shared) argument
|
/openjdk7/jdk/src/share/classes/java/util/ |
H A D | PropertyPermission.java | 61 * <DD> read permission. Allows <code>System.getProperty</code> to 64 * <DD> write permission. Allows <code>System.setProperty</code> to 70 * Care should be taken before granting code permission to access 71 * certain system properties. For example, granting permission to 74 * installation directory). Also, granting permission to access 172 * permission. 182 * @param p the permission to check against. 184 * @return true if the specified permission is implied by this object, 298 "invalid permission: " + actions); 314 "invalid permission 478 add(Permission permission) argument 522 implies(Permission permission) argument [all...] |
/openjdk7/jdk/src/share/classes/sun/net/www/protocol/file/ |
H A D | FileURLConnection.java | 216 Permission permission; field in class:FileURLConnection 218 /* since getOutputStream isn't supported, only read permission is 222 if (permission == null) { 225 permission = new FilePermission(decodedPath, "read"); 227 permission = new FilePermission( 231 return permission;
|
/openjdk7/jdk/src/share/classes/javax/smartcardio/ |
H A D | CardPermission.java | 33 * A permission for Smart Card operations. A CardPermission consists of the 34 * name of the card terminal the permission applies to and a set of actions 126 * if this permission applies to all terminals. <code>actions</code> 216 * Checks if this CardPermission object implies the specified permission. 219 * <li><p><code>permission</code> is an instance of CardPermission,</p> 220 * <li><p><code>permission</code>'s actions are a proper subset of this 223 * <code>*</code> or equal to <code>permission</code>'s <code>name</code>. 227 * @param permission the permission to check against 229 * specified permission 231 implies(Permission permission) argument [all...] |
/openjdk7/jdk/test/java/security/Permission/ |
H A D | ToString.java | 43 throw new Exception("The expected permission.toString() is " + 49 throw new Exception("The expected permission.toString() is " + 60 public boolean implies(Permission permission) { argument
|
/openjdk7/jdk/src/share/classes/javax/crypto/ |
H A D | CryptoPermission.java | 196 * Checks if the specified permission is "implied" by 203 * is implied by this permission's algorithm name, and<p> 205 * equal to this permission's maximum allowable key size, and<p> 207 * implied by this permission's algorithm parameter spec, and<p> 209 * is implied by this permission's 214 * @param p the permission to check against. 216 * @return true if the specified permission is equal to or 217 * implied by this permission, false otherwise. 489 * Adds a permission to the CryptoPermissionCollection. 491 * @param permission th 496 add(Permission permission) argument 517 implies(Permission permission) argument [all...] |
H A D | CryptoPermissions.java | 120 * Adds a permission object to the PermissionCollection for the 122 * <code>(CryptoPermission)permission.getAlgorithm()</code>. 125 * a new PermissionCollection object (and adds the permission to it) 128 * @param permission the Permission object to add. 135 public void add(Permission permission) { argument 142 if (!(permission instanceof CryptoPermission)) 145 CryptoPermission cryptoPerm = (CryptoPermission)permission; 155 * of the specified permission's algorithm implies the specified 156 * permission. Returns true if the checking succeeded. 158 * @param permission th 164 implies(Permission permission) argument [all...] |
/openjdk7/jdk/src/share/classes/com/sun/security/auth/ |
H A D | PolicyParser.java | 420 rb.getString("expected.permission.entry")); 446 e.permission = match("permission type"); 536 } else if (expect.equalsIgnoreCase("permission type")) { 550 } else if (expect.equalsIgnoreCase("permission type")) { 628 * permission java.io.FilePermission "/tmp", "read,write"; 682 * Enumerate all the permission entries in this GrantEntry. 797 * Each permission entry in the policy configuration file is 804 * permission java.io.FilePermission "/tmp", "read,write"; 820 public String permission; field in class:PolicyParser.PermissionEntry 828 PermissionEntry(String permission, String name, String action) argument [all...] |