org.wso2.carbon.appfactory.git
Class AppFactoryAuthenticationClient

java.lang.Object
  extended by org.wso2.carbon.appfactory.git.AppFactoryAuthenticationClient

public class AppFactoryAuthenticationClient
extends Object

The client for authenticate user using AuthenticationAdmin web service


Constructor Summary
AppFactoryAuthenticationClient(GitBlitConfiguration configuration)
          Constructor taking Gitblit configuration
 
Method Summary
 String authenticate(String userName, String password)
          Authenticate user and return a valid cookie
 void logout()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AppFactoryAuthenticationClient

public AppFactoryAuthenticationClient(GitBlitConfiguration configuration)
Constructor taking Gitblit configuration

Parameters:
configuration -
Method Detail

authenticate

public String authenticate(String userName,
                           String password)
Authenticate user and return a valid cookie

Parameters:
userName -
password -
Returns:
a valid cookie if authentication is successful otherwise null

logout

public void logout()


Copyright © 2015 WSO2 Inc. All rights reserved.