Class ConfigurationUtil

java.lang.Object
io.getlime.security.powerauth.lib.cmd.util.ConfigurationUtil

public class ConfigurationUtil
extends java.lang.Object
Helper class for configuration
Author:
Petr Dvorak
  • Constructor Summary

    Constructors
    Constructor Description
    ConfigurationUtil()  
  • Method Summary

    Modifier and Type Method Description
    static java.lang.String getApplicationKey​(org.json.simple.JSONObject clientConfigObject)
    Get application key value that is set in dictionary, or a default value.
    static java.lang.String getApplicationName​(org.json.simple.JSONObject clientConfigObject)
    Get application name that is set in dictionary, or a default value.
    static java.lang.String getApplicationSecret​(org.json.simple.JSONObject clientConfigObject)
    Get application secret that is set in dictionary, or a default value.
    static java.security.PublicKey getMasterKey​(org.json.simple.JSONObject clientConfigObject, StepLogger stepLogger)
    Get master public key from the configuration object

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ConfigurationUtil

      public ConfigurationUtil()
  • Method Details

    • getApplicationKey

      public static java.lang.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 java.lang.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 java.lang.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 java.security.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.