Class ScimClient
java.lang.Object
com.ibm.security.access.scimclient.ScimClient
Convenience wrapper for the HTTP client to simplify/standardize SCIM
requests.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
computeIDForUsername
(String username) Computes the SCIM ID for a given username.static String
computeScimUsernameFromUsername
(String username) Computes the SCIM username from a given username.static String
computeUsernameFromID
(String scimId) Computes the username from a given SCIM ID.static HttpResponse
httpDelete
(HashMap<String, String> config, String urlstr) SCIM client DELETE method.static HttpResponse
SCIM client GET method.static HttpResponse
SCIM client PATCH method.static HttpResponse
SCIM client POST method.static HttpResponse
SCIM client PUT method.
-
Field Details
-
HttpClient_java_sourceCodeID
- See Also:
-
HttpClient_java_copyright
- See Also:
-
-
Constructor Details
-
ScimClient
public ScimClient()
-
-
Method Details
-
httpGet
SCIM client GET method.- Parameters:
config
- The ScimConfig mapurlstr
- The URL to GET- Returns:
- The HTTP response. Null if invalid URL or no response.
-
httpPost
SCIM client POST method.- Parameters:
config
- The ScimConfig mapurlstr
- The URL to POSTbody
- The POST body data- Returns:
- The HTTP response. Null if invalid URL or no response.
-
httpPut
SCIM client PUT method.- Parameters:
config
- The ScimConfig mapurlstr
- The URL to PUTbody
- The POST body data- Returns:
- The HTTP response. Null if invalid URL or no response.
-
httpPatch
SCIM client PATCH method.- Parameters:
config
- The ScimConfig mapurlstr
- The URL to PATCHbody
- The POST body data- Returns:
- The HTTP response. Null if invalid URL or no response.
-
httpDelete
SCIM client DELETE method.- Parameters:
config
- The ScimConfig mapurlstr
- The URL to DELETE- Returns:
- The HTTP response. Null if invalid URL or no response.
-
computeIDForUsername
Computes the SCIM ID for a given username. (This is a base64urlencode operation.)- Parameters:
username
- The username to generate the SCIM ID for.- Returns:
- The SCIM ID for the given username.
-
computeUsernameFromID
Computes the username from a given SCIM ID. (This is a base64urldecode operation.)- Parameters:
scimId
- The scimId to determine the username for.- Returns:
- The username corresponding to the given SCIM ID.
-
computeScimUsernameFromUsername
Computes the SCIM username from a given username. (This is a toLower operation)- Parameters:
username
- The username to determine the SCIM username for.- Returns:
- The SCIM username corresponding to the given username.
-