new SuperMap.TokenServiceParameter(options)
TokenServiceParameter.js, line 5
Name | Type | Description | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
token application parameters.
|
Members
-
clientTypeSuperMap.ClientType
-
Token The client identification type of the application.
-
expirationnumber
-
The validity period of the application token is calculated from the time the token is issued, in minutes.
-
ipstring
-
Required when clientType=IP.
-
passwordstring
-
Password.
-
refererstring
-
Required when clientType=Referer. If you apply for a token by the specified URL, set the appropriate URL.
-
userNamestring
-
User name.
Methods
-
toJSON(){string}
TokenServiceParameter.js, line 62 -
Turn all information into a JSON string.
Returns:
Type Description string The JSON object of the parameter.