IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

com.ibm.websphere.objectgrid.security.plugins.builtins
Class WSSubjectValidationImpl

java.lang.Object
  extended by com.ibm.websphere.objectgrid.security.plugins.builtins.WSSubjectValidationImpl
All Implemented Interfaces:
SubjectValidation

public class WSSubjectValidationImpl
extends Object
implements SubjectValidation

This class is an implementation of the SubjectValidation interface in a WebSphere Application Server environment.

A typical scenario of using this class is described as below:

Here is the code sample:
 //get the subject from the thread 
 Subject subject = com.ibm.websphere.security.auth.WSSubject.getRunAsSubject();
 
 // use the subject to get a Session object 
 Session session = objectgrid.getSession(subject);
 

Since:
WAS XD 6.0
See Also:
InvalidSubjectException, SubjectValidation

Constructor Summary
WSSubjectValidationImpl()
          Creates a new WSSubjectValidationImpl
 
Method Summary
 Subject validateSubject(Subject subject)
          Validates that the subject has not been tampered with.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSSubjectValidationImpl

public WSSubjectValidationImpl()
Creates a new WSSubjectValidationImpl

Method Detail

validateSubject

public Subject validateSubject(Subject subject)
                        throws InvalidSubjectException
Validates that the subject has not been tampered with.

Specified by:
validateSubject in interface SubjectValidation
Parameters:
subject - a Subject to be validated
Returns:
the validated Subject object
Throws:
InvalidSubjectException - if the subject is invalid
See Also:
SubjectValidation.validateSubject(Subject)

IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

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