Class ConfigurationUtil
java.lang.Object
io.getlime.security.powerauth.lib.cmd.util.ConfigurationUtil
public class ConfigurationUtil extends Object
Helper class for configuration
- Author:
- Petr Dvorak
-
Constructor Summary
Constructors Constructor Description ConfigurationUtil() -
Method Summary
Modifier and Type Method Description static 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 PublicKeygetMasterKey(org.json.simple.JSONObject clientConfigObject, StepLogger stepLogger)Get master public key from the configuration object
-
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.
-
getMasterKey
public static PublicKey getMasterKey(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.
-