Obtain the java.security.Principal that identifies the caller.
throws a java.lang.IllegalStateException if there is no security context available
The Principal object that identifies the caller. throws: IllegalStateException - no security context exists
Obtain a reference to the JAX-RPC MessageContext.
The MessageContext for this web service invocation. throws: java.lang.IllegalStateException - - the instance is in a state thatdoes not allow access to this method.
Test if the caller has a given role.
Parameters: roleName - The name of the security role. The role must be one ofthe security-role-ref that is defined in the deploymentdescriptor. True if the caller has the specified role. throws: IllegalStateException - Security service not started