com.sun.jini.jeri.internal.runtime
Class Util.ClientSubjectImpl
java.lang.Object
com.sun.jini.jeri.internal.runtime.Util.ClientSubjectImpl
- All Implemented Interfaces:
- ClientSubject
- Enclosing class:
- Util
private static class Util.ClientSubjectImpl
- extends Object
- implements ClientSubject
Method Summary |
Subject |
getClientSubject()
Returns the authenticated identity of the client as a read-only
instance, or null if the client was not authenticated. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
s
private final Subject s
getClientSubjectPerm
private static final Permission getClientSubjectPerm
Util.ClientSubjectImpl
public Util.ClientSubjectImpl(Subject s)
getClientSubject
public Subject getClientSubject()
- Description copied from interface:
ClientSubject
- 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.
- Specified by:
getClientSubject
in interface ClientSubject
- Returns:
- the authenticated identity of the client as a read-only
instance, or
null
if the client was not
authenticated
Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.