|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.http.impl.auth.AuthSchemeBase org.apache.http.impl.auth.NTLMScheme
public class NTLMScheme
NTLM is a proprietary authentication scheme developed by Microsoft and optimized for Windows platforms.
Field Summary |
---|
Fields inherited from class org.apache.http.impl.auth.AuthSchemeBase |
---|
challengeState |
Constructor Summary | |
---|---|
NTLMScheme()
|
|
NTLMScheme(NTLMEngine engine)
|
Method Summary | |
---|---|
Header |
authenticate(Credentials credentials,
HttpRequest request)
Produces an authorization string for the given set of Credentials . |
String |
getParameter(String name)
Returns authentication parameter with the given name, if available. |
String |
getRealm()
Returns authentication realm. |
String |
getSchemeName()
Returns textual designation of the given authentication scheme. |
boolean |
isComplete()
Authentication process may involve a series of challenge-response exchanges. |
boolean |
isConnectionBased()
Tests if the authentication scheme is provides authorization on a per connection basis instead of usual per request basis |
protected void |
parseChallenge(CharArrayBuffer buffer,
int beginIndex,
int endIndex)
|
Methods inherited from class org.apache.http.impl.auth.AuthSchemeBase |
---|
authenticate, getChallengeState, isProxy, processChallenge, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NTLMScheme(NTLMEngine engine)
public NTLMScheme()
Method Detail |
---|
public String getSchemeName()
AuthScheme
public String getParameter(String name)
AuthScheme
name
- The name of the parameter to be returned
public String getRealm()
AuthScheme
null
.
public boolean isConnectionBased()
AuthScheme
true
if the scheme is connection based, false
if the scheme is request based.protected void parseChallenge(CharArrayBuffer buffer, int beginIndex, int endIndex) throws MalformedChallengeException
parseChallenge
in class AuthSchemeBase
MalformedChallengeException
public Header authenticate(Credentials credentials, HttpRequest request) throws AuthenticationException
AuthScheme
Credentials
.
credentials
- The set of credentials to be used for athenticationrequest
- The request being authenticated
AuthenticationException
- if authorization string cannot
be generated due to an authentication failurepublic boolean isComplete()
AuthScheme
true
if the authentication process has been completed,
false
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |