public class JetAPIAuth extends JetAPI implements IJetAPIAuth
API.REQUEST_TYPE
Modifier and Type | Field and Description |
---|---|
static String |
AUTH_TEST_RESPONSE
Deprecated.
The auth test response from jet
|
client, context, lockHost, maxDownloadSize
Constructor and Description |
---|
JetAPIAuth(IAPIHttpClient client,
JetConfig conf)
Deprecated.
Create a new API instance
|
Modifier and Type | Method and Description |
---|---|
boolean |
login()
Deprecated.
Attempt to log in to the Jet API, and retrieve a token
|
executeRequest, get, getHeaderBuilder, getJSONHeaderBuilder, getPlainHeaderBuilder, jsonArrayToTokenList, post, post, post, put, put, put, setErrorHandler
public static final String AUTH_TEST_RESPONSE
public JetAPIAuth(IAPIHttpClient client, JetConfig conf)
client
- The built APIHttpClient instanceconf
- The Jet Configuration objectpublic boolean login() throws APIException, JetException, JetAuthException
login
in interface IJetAPIAuth
login
in class JetAPI
APIException
- if something goes wrongJetException
- if there are errors in the API response bodyJetAuthException
- if there is a problem with the authentication
data in the configuration object after setting it from the login response.Copyright © 2017. All rights reserved.