Package | com.esri.bao.tasks.authentication |
Class | public final class BAOnlineTokenProvider |
Inheritance | BAOnlineTokenProvider ![]() |
Property | Defined by | ||
---|---|---|---|
authenticationTask : AbstractTask
[read-only]
Authentication task associated with this token provider.
| BAOnlineTokenProvider | ||
![]() | currentToken : String
Current authentication token.
| TokenProvider | |
![]() | url : String
Authentication service URL.
| TokenProvider |
Method | Defined by | ||
---|---|---|---|
BAOnlineTokenProvider(authentication:IAuthentication, url:String = null)
Creates a new instance of the BAOnlineTokenProvider class.
| BAOnlineTokenProvider | ||
![]() |
updateToken(responder:IResponder):void
Requests an authentication service for getting a new security token.
| TokenProvider |
authenticationTask | property |
authenticationTask:AbstractTask
[read-only]Authentication task associated with this token provider.
Implementation public function get authenticationTask():AbstractTask
BAOnlineTokenProvider | () | constructor |
public function BAOnlineTokenProvider(authentication:IAuthentication, url:String = null)
Creates a new instance of the BAOnlineTokenProvider class.
The authentication
object receives in the getUserCredentials
request
a userInfo
object with the "url" property specifying the token service URL.
This property should be passed to the output userCredentials
object along with
"username" and "password" properties.
The url
parameter specifies the base URL to the Business Analyst Online
authentication Web Service as follows:
https://{host}:{port}
The {host}
and {port}
parameters in this URL should be substituted with
valid Business Analyst Online host name and port, respectively.
If the base URL is null or empty, the "https://baoapi.esri.com" value is assigned as the base URL.
Parametersauthentication:IAuthentication — An object used for getting user credentials.
|
|
url:String (default = null ) — The base URL to the Business Analyst Online REST Authentication Service.
|