| |
|
| java.lang.Object org.apache.commons.httpclient.auth.RFC2617Scheme org.apache.commons.httpclient.auth.BasicScheme
Constructor Summary | |
public | BasicScheme() Default constructor for the basic authetication scheme. | public | BasicScheme(String challenge) Constructor for the basic authetication scheme. |
BasicScheme | public BasicScheme()(Code) | | Default constructor for the basic authetication scheme.
since: 3.0 |
authenticate | public String authenticate(Credentials credentials, HttpMethod method) throws AuthenticationException(Code) | | Produces basic authorization string for the given set of
Credentials .
Parameters: credentials - The set of credentials to be used for athentication Parameters: method - The method being authenticated throws: InvalidCredentialsException - if authentication credentialsare not valid or not applicable for this authentication scheme throws: AuthenticationException - if authorization string cannot be generated due to an authentication failure a basic authorization string since: 3.0 |
authenticate | public static String authenticate(UsernamePasswordCredentials credentials, String charset)(Code) | | Returns a basic Authorization header value for the given
UsernamePasswordCredentials and charset.
Parameters: credentials - The credentials to encode. Parameters: charset - The charset to use for encoding the credentials a basic authorization string since: 3.0 |
getSchemeName | public String getSchemeName()(Code) | | Returns textual designation of the basic authentication scheme.
basic |
isComplete | public boolean isComplete()(Code) | | Tests if the Basic authentication process has been completed.
true if Basic authorization has been processed,false otherwise. since: 3.0 |
isConnectionBased | public boolean isConnectionBased()(Code) | | Returns false. Basic authentication scheme is request based.
false. since: 3.0 |
|
|
|