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.
|
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.
|
boolean |
force
When true, indicates that a new token should be requested
|
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 |
| 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.
|
| Modifier and Type | Method and Description |
|---|---|
Auth.AuthOptions |
merge(Auth.AuthOptions defaults)
Internal
|
public Auth.TokenCallback authCallback
public java.lang.String authUrl
public boolean force
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 AuthOptions()
public AuthOptions(java.lang.String key)
throws AblyException
key: - the full key string as obtained from the dashboardAblyExceptionpublic Auth.AuthOptions merge(Auth.AuthOptions defaults)