com.dtolabs.client.utils
Class WebserviceFormAuthenticator

java.lang.Object
  extended by com.dtolabs.client.utils.BaseFormAuthenticator
      extended by com.dtolabs.client.utils.WebserviceFormAuthenticator
All Implemented Interfaces:
HttpAuthenticator

public class WebserviceFormAuthenticator
extends BaseFormAuthenticator

WebserviceFormAuthenticator extends BaseFormAuthenticator to provide authentication to the Webservice application.


Field Summary
static java.lang.String DEFAULT_APP_BASE
          Default base path for the Webservice application: "/rundeck"
 
Fields inherited from class com.dtolabs.client.utils.BaseFormAuthenticator
HTTP_SECURE_PROTOCOL, J_SECURITY_CHECK, JAVA_AUTH_PATH, JAVA_PASS_PARAM, JAVA_SESSION_COOKIE_NAME, JAVA_SESSION_COOKIE_PATTERN, JAVA_USER_PARAM, logger, LOGIN_PAGE
 
Constructor Summary
WebserviceFormAuthenticator(java.lang.String username, java.lang.String password)
          Constructor using the default base path: DEFAULT_APP_BASE
WebserviceFormAuthenticator(java.lang.String basePath, java.lang.String username, java.lang.String password)
          Constructor
 
Method Summary
 
Methods inherited from class com.dtolabs.client.utils.BaseFormAuthenticator
authenticate, getBasePath, getCookieId, getUsername, hasSessionCookie, needsReAuthentication, setCookieId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_APP_BASE

public static final java.lang.String DEFAULT_APP_BASE
Default base path for the Webservice application: "/rundeck"

See Also:
Constant Field Values
Constructor Detail

WebserviceFormAuthenticator

public WebserviceFormAuthenticator(java.lang.String username,
                                   java.lang.String password)
Constructor using the default base path: DEFAULT_APP_BASE

Parameters:
username - username
password - password

WebserviceFormAuthenticator

public WebserviceFormAuthenticator(java.lang.String basePath,
                                   java.lang.String username,
                                   java.lang.String password)
Constructor

Parameters:
basePath - base path to use
username - username
password - password