IBM WebSphereTM eXtreme Scale, Release 8.6
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.:

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

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

Method Detail

checkPermission

boolean checkPermission(Subject subject,
                        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 WebSphereTM eXtreme Scale, Release 8.6
API Specification

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