IBM WebSphere Extended Deployment (XD)TM
Release 6.0.1

com.ibm.websphere.objectgrid.security.plugins.builtins
WSSubjectSourceImpl

java.lang.Object
  |
  +--com.ibm.websphere.objectgrid.security.plugins.builtins.WSSubjectSourceImpl
All Implemented Interfaces
SubjectSource


WSSubjectSourceImpl is an WebSphere implementation of the SubjectSource interface when an ObjectGrid is accessed in a WebSphere Application Server.

This implementation gets either a runAs Subject or a caller Subject from WebSphere Application Server thread. Users can use #setType(int) method to indicate what type of Subject will be retrieved. If #RUN_AS_SUBJECT is used, the runAs Subject will be returned; if #CALLER_SUBJECT is used, the caller Subject will be returned.


See Also:
    SubjectSource


Field Summary
public  intRUN_AS_SUBJECT
          
public  intCALLER_SUBJECT
          

Constructor Summary
WSSubjectSourceImpl()
          
WSSubjectSourceImpl(int)
          


Method Summary
public  intgetType()
          
public  voidsetType(int)
          
public  SubjectgetSubject()
           Convert a passed-in Subject to a new Subject object.

Inherited Methods

Methods inherited from java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

RUN_AS_SUBJECT

public 
  static RUN_AS_SUBJECT
a constant representing the runAs Subject type

CALLER_SUBJECT

public 
  static CALLER_SUBJECT
a constant representing the caller Subject type

Constructor Detail

WSSubjectSourceImpl

public WSSubjectSourceImpl( )
Construct WSSubjectSourceImpl with the RunAs Subject type


WSSubjectSourceImpl

public WSSubjectSourceImpl( int type)
Construct WSSubjectSourceImpl with the Subject type
Parameters:
type - the Subject type


Method Detail

getType

public int getType()


Returns:
     the Subject type


setType

public void setType(int type)
Set the Subject type
Parameters:
    type - the Subject type


getSubject

public Subject getSubject()
Convert a passed-in Subject to a new Subject object.


Returns:
     the converted subject


Throws:
    com.ibm.websphere.objectgrid.security.ObjectGridSecurityException


IBM WebSphere Extended Deployment (XD)TM
Release 6.0.1