Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.cactus.client.authentication
Class BasicAuthentication

    java.lang.Object
      org.apache.cactus.client.authentication.AbstractAuthentication
          org.apache.cactus.client.authentication.BasicAuthentication

All Implemented Interfaces:
  Authentication

public class BasicAuthentication
extends AbstractAuthentication

Basic Authentication support.

Since:
  1.3
Version:
  $Id: BasicAuthentication.java 238991 2004-05-22 11:34:50Z vmassol $
See Also:
  `AbstractAuthentication`

Constructor Summary
`BasicAuthentication(java.lang.String theName, java.lang.String thePassword)`

Method Summary
`void` | `configure(org.apache.commons.httpclient.HttpState theState, org.apache.commons.httpclient.HttpMethod theMethod, WebRequest theRequest, Configuration theConfiguration)` Modifies the request so that it will carry authentication information.

Methods inherited from class org.apache.cactus.client.authentication.AbstractAuthentication
`getName, getPassword, setName, setPassword`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### BasicAuthentication

    public BasicAuthentication(java.lang.String theName,
                               java.lang.String thePassword)

Parameters:
  `theName` - user name of the Credential
  `thePassword` - user password of the Credential

Method Detail

### configure

    public void configure(org.apache.commons.httpclient.HttpState theState,
                          org.apache.commons.httpclient.HttpMethod theMethod,
                          WebRequest theRequest,
                          Configuration theConfiguration)

  Description copied from interface: `Authentication`
  Modifies the request so that it will carry authentication information.

  Parameters:
    `theState` - The HttpClient state object that can be used to ask HttpClient to set up authentication
    `theMethod` - the HttpClient HTTP method that will be used to connect to the server side
    `theRequest` - The request object that will be sent to the Cactus Redirector over HTTP
    `theConfiguration` - The Cactus configuration so that authentication methods can get access to Cactus configuration properties
  See Also:
    `Authentication.configure(org.apache.commons.httpclient.HttpState, org.apache.commons.httpclient.HttpMethod, org.apache.cactus.WebRequest, org.apache.cactus.internal.configuration.Configuration)`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000-2004 Apache Software Foundation. All Rights Reserved.