org.jboss.test.security.interfaces
Interface SubjectSession

All Superinterfaces:
EJBObject (src) , java.rmi.Remote

public interface SubjectSession
extends EJBObject (src)

A session facade interface for validating the security context


Method Summary
 void validateCallerContext(java.lang.String callerName, java.util.Set callerPrincipals)
          Call a method on the ejb/StatelessSession, ejb/StatefulSession, ejb/Entity ejb-refs and validate that the security context seen after each call matches the expected context seen at the start of the call.
 
Methods inherited from interface javax.ejb.EJBObject (src)
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove
 

Method Detail

validateCallerContext

public void validateCallerContext(java.lang.String callerName,
                                  java.util.Set callerPrincipals)
                           throws java.security.GeneralSecurityException,
                                  java.rmi.RemoteException
Call a method on the ejb/StatelessSession, ejb/StatefulSession, ejb/Entity ejb-refs and validate that the security context seen after each call matches the expected context seen at the start of the call.

Parameters:
callerName - - the Principal.getName expected for the getCallerPrincipal
callerPrincipals - - Set for the current Subject.getPrincipals set
Throws:
java.security.GeneralSecurityException
java.rmi.RemoteException