IBM WebSphere Extended Deployment (XD)TM, Release 6.1
ObjectGrid API Specification

com.ibm.websphere.objectgrid.security.plugins
Interface ObjectGridAuthorization


public interface ObjectGridAuthorization

This plugin can be used to authorize ObjectGrid, ObjectMap and JavaMap accesses to the Principals represented by a Subject object.

A typical implementation of this plug-in is to retrieve the Principals from the Subject object, and then check whether or not the specified permissions are granted to the Principals.

A permission passed to the checkPermission(Subject, Permission) method could be one of the following.:

This method is used to replace the old MapAuthorization plug-in. The MapAuthorization is deprecated in WAS XD 6.1.

Since:
WAS XD 6.1
See Also:
ObjectGridPermission, MapPermission, AgentPermission, ServerMapPermission, ObjectGrid.setMapAuthorization(MapAuthorization), ObjectGrid.setObjectGridAuthorization(ObjectGridAuthorization)

Method Summary
 boolean checkPermission(javax.security.auth.Subject subject, java.security.Permission permission)
          Checks whether or not the Principals represented by the specified Subject has the specified Permission.
 

Method Detail

checkPermission

boolean checkPermission(javax.security.auth.Subject subject,
                        java.security.Permission permission)
Checks whether or not the Principals represented by the specified Subject has the specified Permission.

If the permission is granted, true is returned; otherwise false is returned.

Parameters:
subject - the subject to check
permission - the permission to access any ObjectGrid resitrcited entities, such as an ObjectGrid, an ObjectMap, or a JavaMap. The Permission object could be a ObjectGridPermission or a MapPermission object.
Returns:
true if the permission is granted; false otherwise.
See Also:
Permission, ObjectGridPermission, MapPermission

IBM WebSphere Extended Deployment (XD)TM, Release 6.1
ObjectGrid API Specification

© Copyright International Business Machines Corp 2005-2007. All rights reserved.