@@ -0,0 +1,1471 @@
+package org.wso2.carbon.identity.application.authentication.endpoint.util;%0A%0Aimport org.apache.commons.logging.Log;%0Aimport org.apache.commons.logging.LogFactory;%0A%0Aimport java.io.IOException;%0Aimport java.net.URL;%0Aimport javax.net.ssl.HttpsURLConnection;%0A%0A/**%0A * Client for calling User Session Management API with mutual SSL authentication%0A */%0Apublic class UserSessionMgtAPIClient %7B%0A%0A    private static final Log log = LogFactory.getLog(UserSessionMgtAPIClient.class);%0A%0A    private static final String HTTP_METHOD_DELETE = %22DELETE%22;%0A%0A    /**%0A     * Send mutual SSL https delete request%0A     *%0A     * @param backendURL URL of the service%0A     * @throws IOException%0A     */%0A    public static void terminateUserSession(String backendURL) %7B%0A%0A        URL url = null;%0A%0A        try %7B%0A            url = new URL(backendURL);%0A            HttpsURLConnection httpsUrlConnection = (HttpsURLConnection) url.openConnection();%0A            httpsUrlConnection.setDoOutput(true);%0A            httpsUrlConnection.setSSLSocketFactory(MutualSSLManager.getSslSocketFactory());%0A            httpsUrlConnection.setRequestMethod(HTTP_METHOD_DELETE);%0A            httpsUrlConnection.setRequestProperty(MutualSSLManager.getUsernameHeaderName(),%0A                    MutualSSLManager.getCarbonLogin());%0A            httpsUrlConnection.getResponseCode();%0A        %7D catch (IOException e) %7B%0A            log.error(%22Sending %22 + HTTP_METHOD_DELETE + %22 request to URL : %22 + url + %22failed.%22, e);%0A        %7D%0A    %7D%0A%0A%7D%0A

Implement UserSessionMgtAPIClient