|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.auth.NullAuthentication
Authentication (or lack thereof) based on trusting the user name supplied by
the client. The client can assert the user name through a call to
RemoteMethodServer.setUserName
. If the user name is not set the
client's user.name Java system property is used. This authentication scheme
is only supported for stand-alone applications running on the server's local host
or a host identified in the server's wt.auth.trustedHosts property.
Supported API: true
Extendable: false
Field Summary | |
private String |
previousClientHost
|
private static String |
RESOURCE
|
private static String |
TRUSTED_HOSTS
|
private static boolean |
VERBOSE_SERVER
|
private static String |
versionID
|
Constructor Summary | |
NullAuthentication()
|
Method Summary | |
MethodAuthenticator |
bootstrap(MethodAuthenticator authenticator)
Initialization method called from bootstrapping authenticator's init method. |
protected boolean |
checkAccess()
Method to validate access to NullAuthentication . |
MethodAuthenticator |
getBootstrapAuthenticator()
Get a bootstrap MethodAuthenticator capable of identifying the user. |
MethodAuthenticator |
getBootstrapAuthenticator(String session_id)
Get a bootstrap MethodAuthenticator capable of identifying the user
for a given session. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String versionID
private static final String RESOURCE
private static final boolean VERBOSE_SERVER
private static final String TRUSTED_HOSTS
private String previousClientHost
Constructor Detail |
public NullAuthentication()
Method Detail |
public MethodAuthenticator getBootstrapAuthenticator()
MethodAuthenticator
capable of identifying the user.
This method returns a NullLogin
object that will identify the
user from a preset value or the user.name
system property.
getBootstrapAuthenticator
in interface AuthenticationHandler
MethodAuthenticator
objectpublic MethodAuthenticator getBootstrapAuthenticator(String session_id)
MethodAuthenticator
capable of identifying the user
for a given session. This method returns a NullLogin
object that will
identify the user from a preset value or the user.name
system property.
getBootstrapAuthenticator
in interface AuthenticationHandler
session_id
- a string identifying the current session
MethodAuthenticator
objectpublic MethodAuthenticator bootstrap(MethodAuthenticator authenticator)
bootstrap
in interface AuthenticationHandler
authenticator
- the MethodAuthenticator
being initialized
MethodAuthenticator
or null if not our authenticator.
AuthenticationException
- if authentication failedprotected boolean checkAccess()
NullAuthentication
.
This implementation assumes this is an RMI call and allows access only from
clients that are running on the local (server) host.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |