Class ConfigurationUtil
java.lang.Object
io.getlime.security.powerauth.lib.cmd.util.ConfigurationUtil
Helper class for configuration
- Author:
- Petr Dvorak
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetApplicationKey(org.json.simple.JSONObject clientConfigObject) Get application key value that is set in dictionary, or a default value.static StringgetApplicationName(org.json.simple.JSONObject clientConfigObject) Get application name that is set in dictionary, or a default value.static StringgetApplicationSecret(org.json.simple.JSONObject clientConfigObject) Get application secret that is set in dictionary, or a default value.static PublicKeygetMasterPublicKey(SdkConfiguration config, StepLogger stepLogger) Extract master public key from mobile SDK configurationstatic PublicKeygetMasterPublicKey(org.json.simple.JSONObject clientConfigObject, StepLogger stepLogger) Get master public key from the configuration objectstatic StringgetMobileSdkConfig(org.json.simple.JSONObject clientConfigObject) Get mobile SDK configuration.
-
Constructor Details
-
ConfigurationUtil
public ConfigurationUtil()
-
-
Method Details
-
getApplicationKey
Get application key value that is set in dictionary, or a default value.- Parameters:
clientConfigObject- Object with configuration.- Returns:
- Application key.
-
getApplicationSecret
Get application secret that is set in dictionary, or a default value.- Parameters:
clientConfigObject- Object with configuration.- Returns:
- Application secret.
-
getApplicationName
Get application name that is set in dictionary, or a default value.- Parameters:
clientConfigObject- Object with configuration.- Returns:
- Application name.
-
getMasterPublicKey
public static PublicKey getMasterPublicKey(org.json.simple.JSONObject clientConfigObject, StepLogger stepLogger) Get master public key from the configuration object- Parameters:
clientConfigObject- Object with configuration.stepLogger- Step logger instance.- Returns:
- Master public key.
-
getMasterPublicKey
Extract master public key from mobile SDK configuration- Parameters:
config- Mobile SDK configuration.stepLogger- Step logger instance.- Returns:
- Master public key.
-
getMobileSdkConfig
Get mobile SDK configuration.- Parameters:
clientConfigObject- Object with configuration.- Returns:
- Mobile SKD configuration.
-