Package | com.esri.bacore.tasks |
Class | public class ArcGISTokenService |
Inheritance | ArcGISTokenService TokenService Object |
Since : | Community Analyst API for Flex 2.2. |
Property | Defined By | ||
---|---|---|---|
clientID : String
Client ID used for getting a long-lived token. | ArcGISTokenService | ||
proxyURL : 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 | ||
token : String
Token for accessing a secure task. | TokenService | ||
tokenProvider : ITokenProvider
Provider responsible for updating the security token if the last one expires. | TokenService | ||
url : String
The URL to authentication token service. | TokenService |
Method | Defined By | ||
---|---|---|---|
Creates a new instance of the ArcGISTokenService class. | ArcGISTokenService | ||
login(username:String, password:String, responder:IResponder):void
Requests a token service for getting a security token and creates a token provider. | TokenService | ||
updateTokenProvider(username:String, password:String):Boolean
Updates the tokenProvider property of this instance with the new token provider. | TokenService |
clientID | property |
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 ""
.
public function get clientID():String
public function set clientID(value:String):void
timeout | property |
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
.
public function get timeout():int
public function set timeout(value:int):void
ArcGISTokenService | () | Constructor |
public function ArcGISTokenService()
Creates a new instance of the ArcGISTokenService class.