java.security
Class AllPermission

java.lang.Object
  |
  +--java.security.Permission
        |
        +--java.security.AllPermission
All Implemented Interfaces:
Guard, Serializable

public final class AllPermission
extends Permission

Untamed:

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.security.Permission
 
Constructor Summary
AllPermission()
          Enabled: Creates a new AllPermission object.
AllPermission(String name, String actions)
          Enabled: Creates a new AllPermission object.
 
Method Summary
 boolean equals(Object obj)
          Suppressed: Checks two AllPermission objects for equality.
 String getActions()
          Enabled: Returns the canonical string representation of the actions.
 int hashCode()
          Suppressed: Returns the hash code value for this object.
 boolean implies(Permission p)
          Enabled: Checks if the specified permission is "implied" by this object.
 PermissionCollection newPermissionCollection()
          Enabled: Returns a new PermissionCollection object for storing AllPermission objects.
 
Methods inherited from class java.security.Permission
checkGuard, getName, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AllPermission

public AllPermission()
Enabled: Creates a new AllPermission object.


AllPermission

public AllPermission(String name,
                     String actions)
Enabled: 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

implies

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

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

equals

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

Specified by:
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.

hashCode

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

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

getActions

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

Specified by:
getActions in class Permission
Returns:
the actions.

newPermissionCollection

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

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


comments?