Package | com.kaazing.gateway.client.security |
Class | public class LoginHandler |
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
Method | Defined by | ||
---|---|---|---|
LoginHandler(self:LoginHandler)
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 |
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.
Parametersself:LoginHandler |
getCredentials | () | method |
public function getCredentials(continuation:Function):void
Gets the password authentication credentials from an arbitrary source.
Parameterscontinuation:Function — is a function parameter, the function is assumed to have the following signature: function(username:String,password:String):void
|