org.apache.commons.httpclient.auth
Interface CredentialsProvider
- public interface CredentialsProvider
Credentials provider interface can be used to provide HTTP method
with a means
to request authentication credentials if no credentials have been given
or given credentials are incorrect.
Classes implementing this interface must synchronize access to shared
data as methods of this interfrace may be executed from multiple threads
- Since:
- 3.0
- Author:
- Ortwin Glueck, Oleg Kalnichevski
Field Summary |
static String |
PROVIDER
Sets the credentials provider parameter. |
PROVIDER
public static final String PROVIDER
- Sets the credentials provider parameter.
This parameter expects a value of type CredentialsProvider
.
getCredentials
public Credentials getCredentials(AuthScheme scheme,
String host,
int port,
boolean proxy)
throws CredentialsNotAvailableException
- Requests additional
authentication credentials
.
- Parameters:
scheme
- the authentication scheme
host
- the authentication hostport
- the port of the authentication hostproxy
- true if authenticating with a proxy,
false otherwise
Copyright © 2001-2005 Apache Software Foundation. All Rights Reserved.