Packagecom.kaazing.gateway.client.security
Classpublic class LoginHandler

A login handler is responsible for obtaining credentials from an arbitrary source.

Login Handlers can be associated with one or more ChallengeHandler objects, to ensure that when a ChallengeHandler requires credentials for a ChallengeResponse , the work is delegated to a LoginHandler.

At client configuration time, a LoginHandler can be associated with a ChallengeHandler as follows:

 var basicChallengeHandler:BasicChallengeHandler = ChallengeHandlerLoader.load(BasicChallengeHandler.class) as BasicChallengeHandler;
 var loginHandler:LoginHandler = ...
 basicChallengeHandler.setLoginHandler(loginHandler);
 

See also

ChallengeHandler


Public Methods
 MethodDefined by
  
To instantiate a LoginHandler, use this constructor witha reference to this in your login handler's constructor.
LoginHandler
  
getCredentials(continuation:Function):void
Gets the password authentication credentials from an arbitrary source.
LoginHandler
Constructor detail
LoginHandler()constructor
public function LoginHandler(self:LoginHandler)

To instantiate a LoginHandler, use this constructor witha reference to this in your login handler's constructor. For example:

         public class SampleLoginHandler1 extends LoginHandler {
           public function SampleLoginHandler1() {
            super(this);
           }
                override public function getCredentials(continuation:Function):void {
               continuation("joe", "welcome");
           }
        }
     

Subclass use only.

Parameters

self:LoginHandler
Method detail
getCredentials()method
public function getCredentials(continuation:Function):void

Gets the password authentication credentials from an arbitrary source.

Parameters
continuation:Function — is a function parameter, the function is assumed to have the following signature: function(username:String,password:String):void