Packagecom.esri.bacore.client
Interfacepublic interface ITokenProvider
Implementors TokenProvider

The ITokenProvider interface is intended to be used for implementing a security token provider for access to a token-secired Web service.



Public Properties
 PropertyDefined By
  currentToken : String
Current security token.
ITokenProvider
Public Methods
 MethodDefined By
  
updateToken(responder:IResponder):void
Requests a token service for getting a new security token.
ITokenProvider
Property Detail
currentTokenproperty
currentToken:String

Current security token.


Implementation
    public function get currentToken():String
    public function set currentToken(value:String):void
Method Detail
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.