IBM WebSphere Extended Deployment (XD)TM
Release 6.0.1

com.ibm.websphere.objectgrid.security.plugins
MapAuthorization



This plugin can be used to authorize ObjectMap/JavaMap accesses to the principals represented by the Subject object.

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




Method Summary
public  booleancheckPermission(javax.security.auth.Subject, com.ibm.websphere.objectgrid.security.MapPermission)
           Check whether the principals represented by the Subject object in the subject has the specified MapPermission or not.

Method Detail

checkPermission

public boolean checkPermission(Subject subject,MapPermission permission)
Check whether the principals represented by the Subject object in the subject has the specified MapPermission or not. If the permissions are granted, true is returned; otherwise a false will be returned.
Parameters:
    subject - the subject
    permission - the permission to access ObjectMap


Returns:
     true if the permission is granted; false otherwise.


IBM WebSphere Extended Deployment (XD)TM
Release 6.0.1