| java.lang.Object org.apache.commons.httpclient.auth.NTLMScheme
Constructor Summary | |
public | NTLMScheme() Default constructor for the NTLM authentication scheme. | public | NTLMScheme(String challenge) Constructor for the NTLM authentication scheme. |
NTLMScheme | public NTLMScheme()(Code) | | Default constructor for the NTLM authentication scheme.
since: 3.0 |
authenticate | public String authenticate(Credentials credentials, HttpMethod method) throws AuthenticationException(Code) | | Produces NTLM 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 an NTLM authorization string since: 3.0 |
getID | public String getID()(Code) | | Returns a String identifying the authentication challenge. This is
used, in combination with the host and port to determine if
authorization has already been attempted or not. Schemes which
require multiple requests to complete the authentication should
return a different value for each stage in the request.
Additionally, the ID should take into account any changes to the
authentication challenge and return a different value when appropriate.
For example when the realm changes in basic authentication it should be
considered a different authentication attempt and a different value should
be returned.
String a String identifying the authentication challenge. Thereturned value may be null. |
getParameter | public String getParameter(String name)(Code) | | Returns the authentication parameter with the given name, if available.
There are no valid parameters for NTLM authentication so this method always returns
null.
Parameters: name - The name of the parameter to be returned the parameter with the given name |
getRealm | public String getRealm()(Code) | | The concept of an authentication realm is not supported by the NTLM
authentication scheme. Always returns null .
null |
getSchemeName | public String getSchemeName()(Code) | | Returns textual designation of the NTLM authentication scheme.
ntlm |
isComplete | public boolean isComplete()(Code) | | Tests if the NTLM authentication process has been completed.
true if Basic authorization has been processed,false otherwise. since: 3.0 |
isConnectionBased | public boolean isConnectionBased()(Code) | | Returns true. NTLM authentication scheme is connection based.
true. since: 3.0 |
|
|