Package net.jini.io.context
Interface ClientSubject
public interface ClientSubject
A server context element that can supply the client subject for the remote call.
- Since:
- 2.0
- Author:
- Sun Microsystems, Inc.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the authenticated identity of the client as a read-only instance, ornullif the client was not authenticated.
-
Method Details
-
getClientSubject
Subject getClientSubject()Returns the authenticated identity of the client as a read-only instance, ornullif the client was not authenticated.If the client delegated to the server, then the returned subject contains any derived delegation credentials; the server can then impersonate the client by performing outbound secure calls (or by receiving incoming secure calls) in the context of a
Subject.doAswith the client subject.- Returns:
- the authenticated identity of the client as a read-only instance, or
nullif the client was not authenticated - Throws:
SecurityException- if a security manager exists and itscheckPermissionmethod invoked with the permissionthrows aContextPermission("net.jini.io.context.ClientSubject.getClientSubject")SecurityException
-