Package org.wso2.is7.client.utils
Class AttributeMapper
java.lang.Object
org.wso2.is7.client.utils.AttributeMapper
Contains methods related to SCIM attribute mapping.
Copied from
https://raw.githubusercontent.com/wso2-extensions/identity-inbound-provisioning-scim2/master/components/org.wso2.carbon.identity.scim2.common/src/main/java/org/wso2/carbon/identity/scim2/common/utils/AttributeMapper.java
to avoid dependency on identity-inbound-provisioning-scim2 module.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetClaimsMap(org.wso2.charon3.core.objects.AbstractSCIMObject scimObject) Return claims as a map of ClaimUri (which is mapped to SCIM attribute uri),ClaimValue.getUserClaims(String scimUserObjectString) Deprecated.This method is deprecated and will be removed in future versions.getUserClaims(String scimUserObjectString, WSO2IS7SCIMSchemasClient wso2IS7SCIMSchemasClient, String accessToken, org.wso2.carbon.apimgt.api.model.KeyManagerConfiguration keyManagerConfiguration, String tenantDomain) Get user claims from the given SCIM object string and Schema string.
-
Constructor Details
-
AttributeMapper
public AttributeMapper()
-
-
Method Details
-
getUserClaims
@Deprecated public static Map<String,String> getUserClaims(String scimUserObjectString) throws org.wso2.carbon.apimgt.api.APIManagementException Deprecated.This method is deprecated and will be removed in future versions.Get user claims from the given SCIM object string.- Parameters:
scimUserObjectString- SCIM 2.0 Payload of a user info.- Returns:
- A map that contains the SCIM URI and the value of the claim.
- Throws:
org.wso2.carbon.apimgt.api.APIManagementException- If an error occurs while decoding the SCIM object, or getting the claims.
-
getUserClaims
public static Map<String,String> getUserClaims(String scimUserObjectString, WSO2IS7SCIMSchemasClient wso2IS7SCIMSchemasClient, String accessToken, org.wso2.carbon.apimgt.api.model.KeyManagerConfiguration keyManagerConfiguration, String tenantDomain) throws org.wso2.carbon.apimgt.api.APIManagementException Get user claims from the given SCIM object string and Schema string.- Parameters:
scimUserObjectString- SCIM 2.0 Payload of a user info.wso2IS7SCIMSchemasClient- WSO2IS7SCIMSchemasClient object to get the SCIM schemas.accessToken- Access token to authenticate the request to WSO2 IS 7.x.keyManagerConfiguration- KeyManagerConfiguration object containing configurations for the key manager.tenantDomain- Tenant domain of the user.- Returns:
- A map that contains the SCIM URI and the value of the claim.
- Throws:
org.wso2.carbon.apimgt.api.APIManagementException- If an error occurs while decoding the SCIM object, or getting the claims.
-
getClaimsMap
public static Map<String,String> getClaimsMap(org.wso2.charon3.core.objects.AbstractSCIMObject scimObject) throws org.wso2.carbon.apimgt.api.APIManagementException Return claims as a map of ClaimUri (which is mapped to SCIM attribute uri),ClaimValue.- Parameters:
scimObject- SCIM object.- Returns:
- A map of claims.
- Throws:
org.wso2.carbon.apimgt.api.APIManagementException- If an error occurs while getting claims.
-