Packagecom.esri.baserver.tasks.authentication
Classpublic class BAServerTokenProvider
InheritanceBAServerTokenProvider Inheritance TokenProvider Inheritance Object
Deprecated Since Community Analyst API for Flex 2.2: Please Use com.esri.bacore.tasks.ArcGISTokenProvider

The BAServerTokenProvider class is deprecated (it is replaced with the ArcGISTokenProvider class).

See also

ArcGISTokenProvider


Public Properties
 PropertyDefined By
  authenticationTask : AbstractTask
[override] [read-only] Authentication task associated with this token provider.
BAServerTokenProvider
  clientID : String
Client ID used for getting a long-lived token.
BAServerTokenProvider
 InheritedcurrentToken : String
Current authentication token.
TokenProvider
 InheritedproxyURL : String
The URL to proxy the request through.
TokenProvider
  timeout : int
An expiration timeout in minutes used when a long-lived token is requested.
BAServerTokenProvider
 Inheritedurl : String
Authentication service URL.
TokenProvider
Public Methods
 MethodDefined By
  
BAServerTokenProvider(authentication:IAuthentication, url:String = null)
Creates a new instance of the BAServerTokenProvider class.
BAServerTokenProvider
 Inherited
updateToken(responder:IResponder):void
Requests an authentication service for getting a new security token.
TokenProvider
Property Detail
authenticationTaskproperty
authenticationTask:AbstractTask  [read-only] [override]

Authentication task associated with this token provider.


Implementation
    public function get authenticationTask():AbstractTask
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
BAServerTokenProvider()Constructor
public function BAServerTokenProvider(authentication:IAuthentication, url:String = null)

Creates a new instance of the BAServerTokenProvider class.

The authentication object receives in the getUserCredentials request a userInfo object with the "url" property specifying the token service URL, the "clientID" property specifying the client ID string, and the "timeout" property specifying the expiration timeout. These properties should be passed to the output userCredentials object along with the "username" and "password" properties.

Parameters
authentication:IAuthentication — An object used for getting user credentials.
 
url:String (default = null) — The URL to the ArcGIS REST Token Service associated with the Business Analyst Server.