|
IBM WebSphereTM eXtreme Scale, Release 8.5 API Specification |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.security.Permission
com.ibm.websphere.objectgrid.security.AdminPermission
public final class AdminPermission
This class represents administration/management permissions to the ObjectGrid infrastructure, specifically, the permissions to access the Management MBean methods. It has two different permission names:
An AdminPermission with ADMIN name grants permissions to access all the Management MBean methods. An AdminPermission with MONITOR name grants permissions to access the Management MBean read-only methods. Therefore, ADMIN permission implies MONITOR permission. Please refer to the Management MBeans for which permission is needed to invoke each method.
Permission
,
Serialized FormField Summary | |
---|---|
static String |
ADMIN
Deprecated. Admin permission string constant |
static String |
MONITOR
Deprecated. Monitor permission string constant |
Constructor Summary | |
---|---|
AdminPermission(String name)
Deprecated. Creates an AdminPermssion object. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
Deprecated. Checks two AdminPermission objects for equality. |
String |
getActions()
Deprecated. Returns the canonical string representation of the actions, which is the empty string "", since there are no actions for an AdminPermission. |
int |
hashCode()
Deprecated. Returns the hash code value for this AdminPermission object. |
boolean |
implies(Permission permission)
Deprecated. Checks if the specified permission is "implied by" this object. |
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 |
Field Detail |
---|
public static final String ADMIN
public static final String MONITOR
Constructor Detail |
---|
public AdminPermission(String name)
name
- the permission name. It should be either
ADMIN
or MONITOR
IllegalArgumentException
- if name is null
or is not
ADMIN
or MONITORADMIN
,
MONITOR
Method Detail |
---|
public boolean implies(Permission permission)
The implies
method is used by the AccessController to determine
whether or not a requested permission is implied by another permission that
is known to be valid in the current execution context.
AdminPermission a implies AdminPermission b if either of the following conditions holds:
implies
in class Permission
permission
- the permission to check against.
true
if the specified permission is implied by this object,
false
if not.public boolean equals(Object obj)
Do not use the equals
method for making access control
decisions; use the implies
method.
equals
in class Permission
obj
- the object we are testing for equality with this object.
true
if both Permission objects are equivalent.public int hashCode()
hashCode
in class Permission
public String getActions()
getActions
in class Permission
|
IBM WebSphereTM eXtreme Scale, Release 8.5 API Specification |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |