Class ScimConfig

java.lang.Object
com.ibm.security.access.scimclient.ScimConfig

public class ScimConfig extends Object
Convenience class to generate ScimConfig maps to be used in JavaScript mapping rules.
  • Field Details

  • Constructor Details

    • ScimConfig

      public ScimConfig()
  • Method Details

    • build

      public static HashMap<String,String> build(String url, String user, String password, String truststore, String keystore, String keyalias, String protocol)
      Generates a ScimConfig object - which is actually just a HashMap invalid input: '<'String,String> so that we can easily serialize it later. It is intended that this function is called from a JavaScript mapping rule. These arguments are used in calls to HttpClient. Apart from url, parameters can be null. This function performs no checking, any error will be exhibited at runtime when these values are subsequently passed to the HttpClient.
      Parameters:
      url - The base URL (including protocol) where the SCIM API lives. For example, https://scim.ibm.com/api/v1
      user - The basic authentication user. (Can be null if BA is not used)
      password - The basic authentication password. (Can be null if BA is not used)
      truststore - The truststore to use for SCIM API requests.
      keystore - The keystore to use for SCIM API requests.
      keyalias - The keyalias within keystore to use from SCIM API requests.
      protocol - The SSL protocol to use.
      Returns:
      A new ScimConfig HashMap.
    • getUrl

      public static String getUrl(HashMap<String,String> config, String suffix)
    • getTruststore

      public static String getTruststore(HashMap<String,String> config)
    • getKeystore

      public static String getKeystore(HashMap<String,String> config)
    • getKeyalias

      public static String getKeyalias(HashMap<String,String> config)
    • getBAUser

      public static String getBAUser(HashMap<String,String> config)
    • getBAPassword

      public static String getBAPassword(HashMap<String,String> config)
    • getProtocol

      public static String getProtocol(HashMap<String,String> config)