This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


java.security
class AllPermission

java.lang.Object extended by java.security.Permission extended by java.security.AllPermission
All Implemented Interfaces:
Serializable, Guard

public final class AllPermission
extends Permission

The AllPermission is a permission that implies all other permissions.

Note: Granting AllPermission should be done with extreme care, as it implies all other permissions. Thus, it grants code the ability to run with security disabled. Extreme caution should be taken before granting such a permission to code. This permission should be used only during testing, or in extremely rare cases where an application or applet is completely trusted and adding the necessary permissions to the policy is prohibitively cumbersome.


Constructor Summary

          Creates a new AllPermission object.
AllPermission(String name, String actions)

          Creates a new AllPermission object.
 
Method Summary
 boolean

          Checks two AllPermission objects for equality.
 String

          Returns the canonical string representation of the actions.
 int

          Returns the hash code value for this object.
 boolean

          Checks if the specified permission is "implied" by this object.
 PermissionCollection

          Returns a new PermissionCollection object for storing AllPermission objects.
 
Methods inherited from class java.security.Permission
checkGuard, equals, getActions, getName, hashCode, implies, newPermissionCollection, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AllPermission

public AllPermission()
Creates a new AllPermission object.


AllPermission

public AllPermission(String name,
                     String actions)
Creates a new AllPermission object. This constructor exists for use by the Policy object to instantiate new Permission objects.

Parameters:
name - ignored
actions - ignored.
Method Detail

equals

public boolean equals(Object obj)
Checks two AllPermission objects for equality. Two AllPermission objects are always equal.

Overrides:
equals in class Permission
Parameters:
obj - the object we are testing for equality with this object.
Returns:
true if obj is an AllPermission, false otherwise.

getActions

public String getActions()
Returns the canonical string representation of the actions.

Overrides:
getActions in class Permission
Returns:
the actions.

hashCode

public int hashCode()
Returns the hash code value for this object.

Overrides:
hashCode in class Permission
Returns:
a hash code value for this object.

implies

public boolean implies(Permission p)
Checks if the specified permission is "implied" by this object. This method always returns true.

Overrides:
implies in class Permission
Parameters:
p - the permission to check against.
Returns:
return

newPermissionCollection

public PermissionCollection newPermissionCollection()
Returns a new PermissionCollection object for storing AllPermission objects.

Overrides:
newPermissionCollection in class Permission
Returns:
a new PermissionCollection object suitable for storing AllPermissions.


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.