| |
|
| javax.xml.ws.WebServiceContext
WebServiceContext | public interface WebServiceContext (Code) | | A WebServiceContext makes it possible for
a web service endpoint implementation class to access
message context and security information relative to
a request being served.
Typically a WebServiceContext is injected
into an endpoint implementation class using the
Resource annotation.
since: JAX-WS 2.0 See Also: javax.annotation.Resource |
Method Summary | |
public MessageContext | getMessageContext() Returns the MessageContext for the request being served
at the time this method is called. | public Principal | getUserPrincipal() Returns the Principal that identifies the sender
of the request currently being serviced. | public boolean | isUserInRole(String role) Returns a boolean indicating whether the
authenticated user is included in the specified
logical role. |
isUserInRole | public boolean isUserInRole(String role)(Code) | | Returns a boolean indicating whether the
authenticated user is included in the specified
logical role. If the user has not been
authenticated, the method returns false.
Parameters: role - A String specifying the name of the role a boolean indicating whetherthe sender of the request belongs to a given role throws: IllegalStateException - This exception is thrownif the method is called while no request isbeing serviced. |
|
|
|