org.ow2.jonas.lib.ejb21
Interface PrincipalFactory

All Known Implementing Classes:
PrincipalFactoryImpl

public interface PrincipalFactory

PrincipalFactory. This factory can be JOnAS Server dependant. The Container makes no assumption on how to get the Principal.

Author:
Christophe Ney

Method Summary
 Principal getCallerPrincipal(boolean inRunAs)
           
 

Method Detail

getCallerPrincipal

Principal getCallerPrincipal(boolean inRunAs)
Parameters:
inRunAs - bean calling this method is running in run-as mode or not ?
Returns:
the current caller principal or null if no principal


Copyright © 2010 OW2 Consortium. All Rights Reserved.