public static class Auth.AuthOptions
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
Auth.TokenCallback |
authCallback
A callback to call to obtain a signed TokenRequest,
TokenDetails or a token string.
|
Param[] |
authHeaders
Headers to be included in any request made by the library
to the authURL.
|
java.lang.String |
authMethod
TO3j7: authMethod: The HTTP verb to be used when a request
is made by the library to the authUrl.
|
Param[] |
authParams
Query params to be included in any request made by the library
to the authURL.
|
java.lang.String |
authUrl
A URL to query to obtain a signed TokenRequest,
TokenDetails or a token string.
|
java.lang.String |
key
Full Ably key string as obtained from dashboard.
|
boolean |
queryTime
This may be set in instances that the library is to sign
token requests based on a given key.
|
java.lang.String |
token
An authentication token issued for this application
against a specific key and
Auth.TokenParams |
Auth.TokenDetails |
tokenDetails
An authentication token issued for this application
against a specific key and
Auth.TokenParams |
boolean |
useTokenAuth
TO3j4: Use token authorization even if no clientId
|
| Constructor and Description |
|---|
AuthOptions()
Default constructor
|
AuthOptions(java.lang.String key)
Convenience constructor, to create an AuthOptions based
on the key string obtained from the application dashboard.
|
public Auth.TokenCallback authCallback
public java.lang.String authUrl
public java.lang.String authMethod
public java.lang.String key
public java.lang.String token
Auth.TokenParamspublic Auth.TokenDetails tokenDetails
Auth.TokenParamspublic Param[] authHeaders
public Param[] authParams
public boolean queryTime
public boolean useTokenAuth
public AuthOptions()
public AuthOptions(java.lang.String key)
throws AblyException
key: - the full key string as obtained from the dashboardAblyException