Methods Summary |
---|
public boolean | equals(java.lang.Object obj)Compares the specified object with this {@code AllPermission} for
equality and returns {@code true} if the specified object is equal,
{@code false} otherwise. To be equal, the given object needs to be an
instance of {@code AllPermission}.
return (obj instanceof AllPermission);
|
public java.lang.String | getActions()Returns the actions associated with this {@code AllPermission}. Since
{@code AllPermission} objects allow all actions, this method returns
always the string "<all actions>".
return ALL_ACTIONS;
|
public int | hashCode()Returns the hash code value for this {@code AllPermission}. Returns the
same hash code for {@code AllPermission}s that are equal to each other as
required by the general contract of {@link Object#hashCode}.
return 1;
|
public boolean | implies(java.security.Permission permission)Indicates whether the given permission is implied by this permission.
{@code AllPermission} objects imply all other permissions.
return true;
|
public java.security.PermissionCollection | newPermissionCollection()Returns a new {@code PermissionCollection} for holding permissions of
this class.
return new AllPermissionCollection();
|