public class SCIMRESTAPIUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static javax.ws.rs.core.Response |
buildResponse(org.wso2.charon3.core.protocol.SCIMResponse scimResponse) |
static String |
getAuthenticatedUserName(org.wso2.msf4j.Request request)
Authenticate the user an from the request and returns the username
|
static javax.ws.rs.core.Response |
getResponseFromCharonException(org.wso2.charon3.core.exceptions.AbstractCharonException e)
Get error response from Charon exception
|
static javax.ws.rs.core.Response |
getSCIMInternalErrorResponse()
Get internal SCIM error
|
static String |
getSerializedJsonStringFromBody(Object dto)
Serialize the provided DTO and creates a JSON string
|
public static javax.ws.rs.core.Response buildResponse(org.wso2.charon3.core.protocol.SCIMResponse scimResponse)
throws org.wso2.carbon.auth.scim.exception.AuthUserManagementException
org.wso2.carbon.auth.scim.exception.AuthUserManagementExceptionpublic static String getSerializedJsonStringFromBody(Object dto)
dto - DTO objectpublic static String getAuthenticatedUserName(org.wso2.msf4j.Request request)
request - Request objectpublic static javax.ws.rs.core.Response getResponseFromCharonException(org.wso2.charon3.core.exceptions.AbstractCharonException e)
e - CharonExceptionpublic static javax.ws.rs.core.Response getSCIMInternalErrorResponse()
Copyright © 2018 WSO2. All rights reserved.