Class ScimConfig
- java.lang.Object
-
- com.ibm.security.access.scimclient.ScimConfig
-
public class ScimConfig extends java.lang.Object
Convenience class to generate ScimConfig maps to be used in JavaScript mapping rules.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
HttpClient_java_copyright
static java.lang.String
HttpClient_java_sourceCodeID
-
Constructor Summary
Constructors Constructor Description ScimConfig()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.HashMap<java.lang.String,java.lang.String>
build(java.lang.String url, java.lang.String user, java.lang.String password, java.lang.String truststore, java.lang.String keystore, java.lang.String keyalias, java.lang.String protocol)
Generates a ScimConfig object - which is actually just a HashMapso that we can easily serialize it later. static java.lang.String
getBAPassword(java.util.HashMap<java.lang.String,java.lang.String> config)
static java.lang.String
getBAUser(java.util.HashMap<java.lang.String,java.lang.String> config)
static java.lang.String
getKeyalias(java.util.HashMap<java.lang.String,java.lang.String> config)
static java.lang.String
getKeystore(java.util.HashMap<java.lang.String,java.lang.String> config)
static java.lang.String
getProtocol(java.util.HashMap<java.lang.String,java.lang.String> config)
static java.lang.String
getTruststore(java.util.HashMap<java.lang.String,java.lang.String> config)
static java.lang.String
getUrl(java.util.HashMap<java.lang.String,java.lang.String> config, java.lang.String suffix)
-
-
-
Field Detail
-
HttpClient_java_sourceCodeID
public static final java.lang.String HttpClient_java_sourceCodeID
- See Also:
- Constant Field Values
-
HttpClient_java_copyright
public static final java.lang.String HttpClient_java_copyright
-
-
Method Detail
-
build
public static java.util.HashMap<java.lang.String,java.lang.String> build(java.lang.String url, java.lang.String user, java.lang.String password, java.lang.String truststore, java.lang.String keystore, java.lang.String keyalias, java.lang.String protocol)
Generates a ScimConfig object - which is actually just a HashMapso 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/v1user
- 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 java.lang.String getUrl(java.util.HashMap<java.lang.String,java.lang.String> config, java.lang.String suffix)
-
getTruststore
public static java.lang.String getTruststore(java.util.HashMap<java.lang.String,java.lang.String> config)
-
getKeystore
public static java.lang.String getKeystore(java.util.HashMap<java.lang.String,java.lang.String> config)
-
getKeyalias
public static java.lang.String getKeyalias(java.util.HashMap<java.lang.String,java.lang.String> config)
-
getBAUser
public static java.lang.String getBAUser(java.util.HashMap<java.lang.String,java.lang.String> config)
-
getBAPassword
public static java.lang.String getBAPassword(java.util.HashMap<java.lang.String,java.lang.String> config)
-
getProtocol
public static java.lang.String getProtocol(java.util.HashMap<java.lang.String,java.lang.String> config)
-
-