Remove unneccessary methods
@@ -28,27 +28,6 @@ import org.wso2.carbon.utils.CarbonUtils;
public class AuthenticateStubUtil {
- private static final Log log = LogFactory.getLog(AuthenticateStubUtil.class);
-
- /**
- * Stub authentication method
- *
- * @param stub valid stub
- * @param sessionCookie session cookie
- */
- public static void authenticateStub(String sessionCookie, Stub stub) {
- long soTimeout = 5 * 60 * 1000; // Three minutes
-
- ServiceClient client = stub._getServiceClient();
- Options option = client.getOptions();
- option.setManageSession(true);
- option.setTimeOutInMilliSeconds(soTimeout);
- option.setProperty(org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING, sessionCookie);
- if (log.isDebugEnabled()) {
- log.debug("AuthenticateStub : Stub created with session " + sessionCookie);
- }
- }
-
/**
* Authenticate the given web service stub against the Product user manager. This
* will make it possible to use the stub for invoking Product admin services.
