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 Details

    • ConfigurationUtil

      public ConfigurationUtil()
  • Method Details

    • getApplicationKey

      public static String getApplicationKey​(org.json.simple.JSONObject clientConfigObject)
      Get application key value that is set in dictionary, or a default value.
      Parameters:
      clientConfigObject - Object with configuration.
      Returns:
      Application key.
    • getApplicationSecret

      public static String getApplicationSecret​(org.json.simple.JSONObject clientConfigObject)
      Get application secret that is set in dictionary, or a default value.
      Parameters:
      clientConfigObject - Object with configuration.
      Returns:
      Application secret.
    • getApplicationName

      public static String getApplicationName​(org.json.simple.JSONObject clientConfigObject)
      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.