wt.auth
Class NullAuthentication

java.lang.Object
  extended bywt.auth.NullAuthentication
All Implemented Interfaces:
AuthenticationHandler

public class NullAuthentication
extends Object
implements AuthenticationHandler

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

versionID

private static final String versionID
See Also:
Constant Field Values

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

VERBOSE_SERVER

private static final boolean VERBOSE_SERVER

TRUSTED_HOSTS

private static final String TRUSTED_HOSTS

previousClientHost

private String previousClientHost
Constructor Detail

NullAuthentication

public NullAuthentication()
Method Detail

getBootstrapAuthenticator

public MethodAuthenticator getBootstrapAuthenticator()
Get a bootstrap 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.

Supported API: false

Specified by:
getBootstrapAuthenticator in interface AuthenticationHandler
Returns:
MethodAuthenticator object

getBootstrapAuthenticator

public MethodAuthenticator getBootstrapAuthenticator(String session_id)
Get a bootstrap 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.

Supported API: false

Specified by:
getBootstrapAuthenticator in interface AuthenticationHandler
Parameters:
session_id - a string identifying the current session
Returns:
MethodAuthenticator object

bootstrap

public MethodAuthenticator bootstrap(MethodAuthenticator authenticator)
Initialization method called from bootstrapping authenticator's init method.

Supported API: false

Specified by:
bootstrap in interface AuthenticationHandler
Parameters:
authenticator - the MethodAuthenticator being initialized
Returns:
replacement MethodAuthenticator or null if not our authenticator.
Throws:
AuthenticationException - if authentication failed

checkAccess

protected boolean checkAccess()
Method to validate access to NullAuthentication. This implementation assumes this is an RMI call and allows access only from clients that are running on the local (server) host.

Supported API: false

Returns:
true if access is allowd, false if not.