IBM WebSphereTM eXtreme Scale, Release 8.5
API Specification

com.ibm.websphere.objectgrid.security
Class AdminPermission

java.lang.Object
  extended by java.security.Permission
      extended by com.ibm.websphere.objectgrid.security.AdminPermission
All Implemented Interfaces:
Serializable, Guard

Deprecated. The static deployment topology is deprecated in version 7.0. Use the dynamic deployment topology.

public final class AdminPermission
extends Permission

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.

Since:
WAS XD 6.0.1
See Also:
Permission, Serialized Form

Field 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

ADMIN

public static final String ADMIN
Deprecated. 
Admin permission string constant

See Also:
Constant Field Values

MONITOR

public static final String MONITOR
Deprecated. 
Monitor permission string constant

See Also:
Constant Field Values
Constructor Detail

AdminPermission

public AdminPermission(String name)
Deprecated. 
Creates an AdminPermssion object.

Parameters:
name - the permission name. It should be either ADMIN or MONITOR
Throws:
IllegalArgumentException - if name is null or is not ADMIN or MONITOR
See Also:
ADMIN, MONITOR
Method Detail

implies

public boolean implies(Permission permission)
Deprecated. 
Checks if the specified permission is "implied by" this object.

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:

  1. Both a and b have the same permission name.
  2. AdminPermission a has "admin" permission name, and AdminPermission b has "monitor" permission name.

Specified by:
implies in class Permission
Parameters:
permission - the permission to check against.
Returns:
true if the specified permission is implied by this object, false if not.

equals

public boolean equals(Object obj)
Deprecated. 
Checks two AdminPermission objects for equality. Two AdminPermission objects are eqaul if and only if their names are equal.

Do not use the equals method for making access control decisions; use the implies method.

Specified by:
equals in class Permission
Parameters:
obj - the object we are testing for equality with this object.
Returns:
true if both Permission objects are equivalent.

hashCode

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

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

getActions

public String getActions()
Deprecated. 
Returns the canonical string representation of the actions, which is the empty string "", since there are no actions for an AdminPermission.

Specified by:
getActions in class Permission
Returns:
the actions for this AdminPermission

IBM WebSphereTM eXtreme Scale, Release 8.5
API Specification

© Copyright International Business Machines Corp 2005,2012. All rights reserved.