I would like to use my own Principal class with my own LoginModule. I configured the LoginModule in login-config.xml and annotated by SLSB as follows :
@Stateless(name="JobAPIWeb")
@WebService(name="JobAPIWeb", portName="...Port", serviceName="JobAPIWebService", targetNamespace="...")
@EndpointConfig(configName = "Standard WSSecurity Endpoint")
@SecurityDomain(value="THZone")
@SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL, parameterStyle = SOAPBinding.ParameterStyle.BARE)
public class JobAPIWeb implements JobAPIWebRemote {
...
m_sessionContext.getCallerPrincipal().getClass().getName()