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.
    • 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

      public static PublicKey getMasterPublicKey(SdkConfiguration config, StepLogger stepLogger)
      Extract master public key from mobile SDK configuration
      Parameters:
      config - Mobile SDK configuration.
      stepLogger - Step logger instance.
      Returns:
      Master public key.
    • getMobileSdkConfig

      public static String getMobileSdkConfig(org.json.simple.JSONObject clientConfigObject)
      Get mobile SDK configuration.
      Parameters:
      clientConfigObject - Object with configuration.
      Returns:
      Mobile SKD configuration.