public class AgentUtilOperations extends Object
| Constructor and Description |
|---|
AgentUtilOperations() |
| Modifier and Type | Method and Description |
|---|---|
static String |
extractMessageFromPayload(String message) |
static String |
getAuthenticationMethod() |
static void |
initializeServerEndPoints()
This method constructs the URLs for each of the API Endpoints called by the device agent
Ex: Register API, Push-Data API
|
static String |
prepareSecurePayLoad(String message) |
static AgentConfiguration |
readIoTServerConfigs()
This method reads the agent specific configurations for the device from the
"deviceConfigs.properties" file found at /repository/conf folder.
|
static void |
refreshOAuthToken() |
static void |
setHTTPSConfigurations() |
public static AgentConfiguration readIoTServerConfigs() throws AgentCoreOperationException
AgentCoreOperationExceptionpublic static void initializeServerEndPoints()
public static void setHTTPSConfigurations()
public static String prepareSecurePayLoad(String message) throws AgentCoreOperationException
AgentCoreOperationExceptionpublic static String extractMessageFromPayload(String message) throws AgentCoreOperationException
AgentCoreOperationExceptionpublic static String getAuthenticationMethod()
public static void refreshOAuthToken()
throws AgentCoreOperationException
AgentCoreOperationExceptionCopyright © 2017 WSO2. All rights reserved.