public class BasicAuthentication extends AbstractAuthentication
AbstractAuthentication
Constructor and Description |
---|
BasicAuthentication(java.lang.String theName,
java.lang.String thePassword) |
Modifier and Type | Method and Description |
---|---|
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.
|
getName, getPassword, setName, setPassword
public BasicAuthentication(java.lang.String theName, java.lang.String thePassword)
theName
- user name of the CredentialthePassword
- user password of the Credentialpublic void configure(org.apache.commons.httpclient.HttpState theState, org.apache.commons.httpclient.HttpMethod theMethod, WebRequest theRequest, Configuration theConfiguration)
Authentication
theState
- The HttpClient state object that can be used to ask
HttpClient to set up authenticationtheMethod
- the HttpClient HTTP method that will be used to connect
to the server sidetheRequest
- The request object that will be sent to the Cactus
Redirector over HTTPtheConfiguration
- The Cactus configuration so that
authentication methods can get access to Cactus configuration
propertiesAuthentication.configure(org.apache.commons.httpclient.HttpState, org.apache.commons.httpclient.HttpMethod, org.apache.cactus.WebRequest, org.apache.cactus.internal.configuration.Configuration)
Copyright © 2000-2004 Apache Software Foundation. All Rights Reserved.