public class AuthService extends EvrythngServiceBase
| Modifier and Type | Field and Description |
|---|---|
static String |
PATH_AUTH |
static String |
PATH_AUTH_ALL |
static String |
PATH_AUTH_ALL_LOGOUT |
static String |
PATH_AUTH_EVRYTHNG |
static String |
PATH_AUTH_EVRYTHNG_THNG |
static String |
PATH_AUTH_EVRYTHNG_THNGS |
static String |
PATH_AUTH_EVRYTHNG_USER_VALIDATE |
static String |
PATH_AUTH_EVRYTHNG_USERS |
| Constructor and Description |
|---|
AuthService(ApiManager apiManager) |
| Modifier and Type | Method and Description |
|---|---|
EvrythngApiBuilder.Builder<Map<String,String>> |
authLogouter()
Logout.
|
EvrythngApiBuilder.Builder<Credentials> |
evrythngUserAuthenticator(Credentials credentials)
Authenticate a user.
|
EvrythngApiBuilder.Builder<Credentials> |
evrythngUserCreator(User user)
Register a new
User in the system. |
EvrythngApiBuilder.Builder<Credentials> |
evrythngUserValidator(String userId,
String activationCode)
Activate a user.
|
EvrythngApiBuilder.Builder<Boolean> |
thngRegistrationDeleter(String thngId)
Deletes credentials of a thng.
|
EvrythngApiBuilder.Builder<ThngCredentials> |
thngRegistrationReader(String thngId)
Retrieves credentials of a thng.
|
EvrythngApiBuilder.Builder<ThngCredentials> |
thngRegistrator(String thngId)
Create credentials for a thng.
|
absoluteUri, delete, deleteMultiple, encodeBase64, get, getConfig, iterator, mqttUrl, onBuilderCreated, post, post, postAsynchronously, postMultipart, postMultipart, put, put, putMultipart, putMultipart, putMultiple, urlEncodePathPartpublic static final String PATH_AUTH
public static final String PATH_AUTH_EVRYTHNG
public static final String PATH_AUTH_EVRYTHNG_USERS
public static final String PATH_AUTH_EVRYTHNG_USER_VALIDATE
public static final String PATH_AUTH_ALL
public static final String PATH_AUTH_ALL_LOGOUT
public static final String PATH_AUTH_EVRYTHNG_THNGS
public static final String PATH_AUTH_EVRYTHNG_THNG
public AuthService(ApiManager apiManager)
public EvrythngApiBuilder.Builder<Credentials> evrythngUserCreator(User user) throws EvrythngClientException
User in the system.
user - User instanceEvrythngApiBuilder.BuilderEvrythngClientExceptionpublic EvrythngApiBuilder.Builder<Credentials> evrythngUserValidator(String userId, String activationCode) throws EvrythngClientException
userId - user idactivationCode - activation codeEvrythngApiBuilder.BuilderEvrythngClientExceptionpublic EvrythngApiBuilder.Builder<Credentials> evrythngUserAuthenticator(Credentials credentials) throws EvrythngClientException
POST "/auth/evrythng"
credentials - Credentials instanceEvrythngApiBuilder.BuilderEvrythngClientExceptionpublic EvrythngApiBuilder.Builder<Map<String,String>> authLogouter() throws EvrythngClientException
POST "/auth/all/logout"
EvrythngApiBuilder.BuilderEvrythngClientExceptionpublic EvrythngApiBuilder.Builder<ThngCredentials> thngRegistrator(String thngId) throws EvrythngClientException
thngId - thng id to provide credentials toEvrythngApiBuilder.BuilderEvrythngClientExceptionpublic EvrythngApiBuilder.Builder<Boolean> thngRegistrationDeleter(String thngId) throws EvrythngClientException
DELETE "/auth/evrythng/thngs/%s"
thngId - thng id to revoke credentialsEvrythngApiBuilder.BuilderEvrythngClientExceptionpublic EvrythngApiBuilder.Builder<ThngCredentials> thngRegistrationReader(String thngId) throws EvrythngClientException
thngId - the id of the thng whose credentials will be retrievedEvrythngApiBuilder.BuilderEvrythngClientExceptionCopyright © 2016 EVRYTHNG Ltd London / Zurich. All rights reserved.