org.wso2.carbon.integration.common.admin.client.utils
Class AuthenticateStubUtil

java.lang.Object
  extended by org.wso2.carbon.integration.common.admin.client.utils.AuthenticateStubUtil

public class AuthenticateStubUtil
extends Object


Constructor Summary
AuthenticateStubUtil()
           
 
Method Summary
static void authenticateStub(String userName, String password, org.apache.axis2.client.Stub stub)
          Authenticate the given web service stub against the Product user manager.
static void authenticateStub(String sessionCookie, org.apache.axis2.client.Stub stub)
          Stub authentication method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthenticateStubUtil

public AuthenticateStubUtil()
Method Detail

authenticateStub

public static void authenticateStub(String sessionCookie,
                                    org.apache.axis2.client.Stub stub)
Stub authentication method

Parameters:
stub - valid stub
sessionCookie - session cookie

authenticateStub

public static void authenticateStub(String userName,
                                    String password,
                                    org.apache.axis2.client.Stub stub)
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.

Parameters:
stub - Axis2 service stub which needs to be authenticated


Copyright © 2015 WSO2. All rights reserved.