Package | com.esri.bacore.client |
Interface | public interface ITokenProvider |
Implementors | TokenProvider |
Property | Defined By | ||
---|---|---|---|
currentToken : String
Current security token. | ITokenProvider |
Method | Defined By | ||
---|---|---|---|
updateToken(responder:IResponder):void
Requests a token service for getting a new security token. | ITokenProvider |
currentToken | property |
currentToken:String
Current security token.
public function get currentToken():String
public function set currentToken(value:String):void
updateToken | () | method |
public function updateToken(responder:IResponder):void
Requests a token service for getting a new security token.
The contract on executing this method is the following:
If the token service fails to get a new token, the responder.fault
method must be called with an instance of the
mx.rpc.events.FaultEvent
type.
If the token service returns a new security token, the currentToken
property should be updated with the new token value and after that the
responder.result
method must be called with the new token passed in
the parameter.
Parameters
responder:IResponder — Responder object to be notified on a response from the token service.
|