org.nakedobjects.remoting.client.authentication
Class ProxyAuthenticator

java.lang.Object
  extended by org.nakedobjects.runtime.authentication.standard.AuthenticatorAbstract
      extended by org.nakedobjects.runtime.authentication.standard.PasswordRequestAuthenticatorAbstract
          extended by org.nakedobjects.remoting.client.authentication.ProxyAuthenticator
All Implemented Interfaces:
ApplicationScopedComponent, Component, Authenticator

public final class ProxyAuthenticator
extends PasswordRequestAuthenticatorAbstract


Constructor Summary
ProxyAuthenticator(NakedObjectConfiguration configuration, ServerFacade serverFacade, ObjectEncoderDecoder encoderDecoder)
           
 
Method Summary
 AuthenticationSession authenticate(AuthenticationRequest authRequest, java.lang.String code)
          Delegates to the provided ServerFacade to ServerFacade#authenticate(String).
 boolean isValid(AuthenticationRequest request)
          Whereas the default implementation of AuthenticatorAbstract.authenticate(AuthenticationRequest, String) delegates to this method, this implementation has it the other way around.
 
Methods inherited from class org.nakedobjects.runtime.authentication.standard.PasswordRequestAuthenticatorAbstract
canAuthenticate
 
Methods inherited from class org.nakedobjects.runtime.authentication.standard.AuthenticatorAbstract
getConfiguration, getDeploymentType, init, shutdown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxyAuthenticator

public ProxyAuthenticator(NakedObjectConfiguration configuration,
                          ServerFacade serverFacade,
                          ObjectEncoderDecoder encoderDecoder)
Method Detail

isValid

public boolean isValid(AuthenticationRequest request)
Whereas the default implementation of AuthenticatorAbstract.authenticate(AuthenticationRequest, String) delegates to this method, this implementation has it the other way around.


authenticate

public AuthenticationSession authenticate(AuthenticationRequest authRequest,
                                          java.lang.String code)
Delegates to the provided ServerFacade to ServerFacade#authenticate(String).

Compare to the default implementation which calls isValid(AuthenticationRequest) and then returns a SimpleSession.

Specified by:
authenticate in interface Authenticator
Overrides:
authenticate in class AuthenticatorAbstract


Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.