Packagecom.esri.bacore.tasks
Classpublic class ArcGISTokenService
InheritanceArcGISTokenService Inheritance TokenService Inheritance Object

Since : Community Analyst API for Flex 2.2.

The ArcGISTokenService class implements the ArcGIS token-based authentication service.



Public Properties
 PropertyDefined By
  clientID : String
Client ID used for getting a long-lived token.
ArcGISTokenService
 InheritedproxyURL : String
The URL to proxy the request through.
TokenService
  timeout : int
An expiration timeout in minutes used when a long-lived token is requested.
ArcGISTokenService
 Inheritedtoken : String
Token for accessing a secure task.
TokenService
 InheritedtokenProvider : ITokenProvider
Provider responsible for updating the security token if the last one expires.
TokenService
 Inheritedurl : String
The URL to authentication token service.
TokenService
Public Methods
 MethodDefined By
  
Creates a new instance of the ArcGISTokenService class.
ArcGISTokenService
 Inherited
login(username:String, password:String, responder:IResponder):void
Requests a token service for getting a security token and creates a token provider.
TokenService
 Inherited
updateTokenProvider(username:String, password:String):Boolean
Updates the tokenProvider property of this instance with the new token provider.
TokenService
Property Detail
clientIDproperty
clientID:String

Client ID used for getting a long-lived token.

The Client ID is either an IP address of the client computer or the URL of the web application that the client browser is using. The valid Client ID value should start from the "ip." string for the IP-address case and from the "ref." string for the Web Referrer URL case.

The default value is "".


Implementation
    public function get clientID():String
    public function set clientID(value:String):void
timeoutproperty 
timeout:int

An expiration timeout in minutes used when a long-lived token is requested. Zero value means the default timeout.

The default value is 0.


Implementation
    public function get timeout():int
    public function set timeout(value:int):void
Constructor Detail
ArcGISTokenService()Constructor
public function ArcGISTokenService()

Creates a new instance of the ArcGISTokenService class.