Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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
See Also:
  `ServerContext.getServerContextElement(java.lang.Class)`

Method Summary
`Subject` | `getClientSubject()` Returns the authenticated identity of the client as a read-only instance, or `null` if the client was not authenticated.

Method Detail

### getClientSubject

    public Subject getClientSubject()

  Returns the authenticated identity of the client as a read-only instance, or `null` if 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.doAs` with the client subject.

  Returns:
    the authenticated identity of the client as a read-only instance, or `null` if the client was not authenticated
  Throws:
    `SecurityException` - if a security manager exists and its `checkPermission` method invoked with the permission ``ContextPermission`("net.jini.io.context.ClientSubject.getClientSubject")` throws a `SecurityException`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004 Sun Microsystems, Inc. All rights reserved