IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

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

All Known Implementing Classes:
WSSubjectSourceImpl

public interface SubjectSource

This plugin can be used to get a Subject which represents an ObjectGrid client. The Subject will then be used for ObjectGrid authorization. The getSubject() method is called by the ObjectGrid runtime when the ObjectGrid.getSession() method is used to get a Session and ObjectGrid security is enabled.

This plug-in is useful for an already authenticated client: it can retrieve the authenticated Subject object and then pass it to the ObjectGrid runtime. Therefore, there is no need for another authentication.

For example, users can use

 Subject.getSubject(AccessControlContext)
 
to get the subject associated with the AccessControlContext and return it in the getSubject() implementation.

Since:
WAS XD 6.0
See Also:
ObjectGrid.getSession(), ObjectGrid.setSubjectSource(SubjectSource)

Method Summary
 Subject getSubject()
          Gets a Subject representing the ObjectGrid client.
 

Method Detail

getSubject

Subject getSubject()
                   throws ObjectGridSecurityException
Gets a Subject representing the ObjectGrid client.

Returns:
a Subject object
Throws:
ObjectGridSecurityException - if any exception occurs during Subject retrieval

IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

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