Class ConfigParameters

  • All Implemented Interfaces:

    
    public final class ConfigParameters
    
                        

    This class represents the configuration parameters that are required by the 3DS SDK for initialization. The App should create a ConfigParameters object and sets the required parameter values.

    Notice: The com.adyen.threeds2.util.AdyenConfigParameters.Builder utility method can be used to easily create the configuration parameters required by the 3DS SDK.

    Created by Ran Haveshush on 24/08/2018.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      void addParam(String group, String paramName, String paramValue) Adds a configuration parameter either to the specified group or to the default group.
      String getParamValue(String group, String paramName) Returns a configuration parameter’s value either from the specified group or from the default group.
      String removeParam(String group, String paramName) Removes a configuration parameter either from the specified group or from the default group.
      Map<String, String> getGroup(String group) Returns a group of configuration parameters value from the specified group.
      • Methods inherited from class java.lang.Object

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

      • ConfigParameters

        ConfigParameters()
    • Method Detail

      • addParam

         void addParam(String group, String paramName, String paramValue)

        Adds a configuration parameter either to the specified group or to the default group.

        Parameters:
        group - The group to which the configuration parameter is to be added.
        paramName - The name of the configuration parameter.
        paramValue - The value of the configuration parameter.
      • getParamValue

         String getParamValue(String group, String paramName)

        Returns a configuration parameter’s value either from the specified group or from the default group.

        Parameters:
        group - The group from which the configuration parameter’s value is to be returned.
        paramName - The name of the configuration parameter.
        Returns:

        The value of the specified configuration parameter.

      • removeParam

         String removeParam(String group, String paramName)

        Removes a configuration parameter either from the specified group or from the default group. It returns the name of the parameter that it removes.

        Parameters:
        group - The group from which the configuration parameter is to be removed.
        paramName - The name of the configuration parameter.
        Returns:

        The name of the parameter that it removes.

      • getGroup

         Map<String, String> getGroup(String group)

        Returns a group of configuration parameters value from the specified group.

        Parameters:
        group - The group from which the configuration parameters values is to be returned.
        Returns:

        The value of the specified configuration parameter.