@Deprecated public final class NTLMScheme extends Object implements AuthScheme
BasicScheme,
BearerScheme| Constructor and Description |
|---|
NTLMScheme()
Deprecated.
|
NTLMScheme(NTLMEngine engine)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
String |
generateAuthResponse(org.apache.hc.core5.http.HttpHost host,
org.apache.hc.core5.http.HttpRequest request,
org.apache.hc.core5.http.protocol.HttpContext context)
Deprecated.
Generates an authorization response based on the current state.
|
String |
getName()
Deprecated.
Returns textual designation of the given authentication scheme.
|
Principal |
getPrincipal()
Deprecated.
Returns
Principal whose credentials are used to generate
an authentication response. |
String |
getRealm()
Deprecated.
Returns authentication realm.
|
boolean |
isChallengeComplete()
Deprecated.
Authentication process may involve a series of challenge-response exchanges.
|
boolean |
isConnectionBased()
Deprecated.
Determines if the authentication scheme is expected to provide an authorization response
on a per connection basis instead of the standard per request basis
|
boolean |
isResponseReady(org.apache.hc.core5.http.HttpHost host,
CredentialsProvider credentialsProvider,
org.apache.hc.core5.http.protocol.HttpContext context)
Deprecated.
Determines whether or not an authorization response can be generated based on
the actual authentication state.
|
void |
processChallenge(AuthChallenge authChallenge,
org.apache.hc.core5.http.protocol.HttpContext context)
Deprecated.
Processes the given auth challenge.
|
String |
toString()
Deprecated.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisChallengeExpected, processChallengepublic NTLMScheme(NTLMEngine engine)
public NTLMScheme()
public String getName()
AuthSchemegetName in interface AuthSchemepublic boolean isConnectionBased()
AuthSchemeisConnectionBased in interface AuthSchemetrue if the scheme is connection based, false
if the scheme is request based.public String getRealm()
AuthSchemenull.getRealm in interface AuthSchemepublic void processChallenge(AuthChallenge authChallenge, org.apache.hc.core5.http.protocol.HttpContext context) throws MalformedChallengeException
AuthScheme
Please note auth schemes that perform mutual authentication must implement
AuthScheme.processChallenge(HttpHost, boolean, AuthChallenge, HttpContext) and
AuthScheme.isChallengeExpected() instead.
processChallenge in interface AuthSchemeauthChallenge - the auth challengecontext - HTTP contextMalformedChallengeException - in case the auth challenge is incomplete,
malformed or otherwise invalid.AuthScheme.processChallenge(HttpHost, boolean, AuthChallenge, HttpContext)public boolean isResponseReady(org.apache.hc.core5.http.HttpHost host,
CredentialsProvider credentialsProvider,
org.apache.hc.core5.http.protocol.HttpContext context)
throws AuthenticationException
AuthSchemeisResponseReady in interface AuthSchemecredentialsProvider - The credentials to be used for authenticationcontext - HTTP contexttrue if an authorization response can be generated and
the authentication handshake can proceed, false otherwise.AuthenticationException - if authorization string cannot
be generated due to an authentication failurepublic Principal getPrincipal()
AuthSchemePrincipal whose credentials are used to generate
an authentication response. Connection based schemes are required
to return a user Principal if authorization applies to
for the entire life span of connection.getPrincipal in interface AuthSchemeAuthScheme.isConnectionBased()public String generateAuthResponse(org.apache.hc.core5.http.HttpHost host, org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.http.protocol.HttpContext context) throws AuthenticationException
AuthSchemeCredentialsProvider prior to this method call.generateAuthResponse in interface AuthSchemerequest - The request being authenticatedcontext - HTTP contextAuthenticationException - if authorization string cannot
be generated due to an authentication failureAuthScheme.isResponseReady(HttpHost, CredentialsProvider, HttpContext)public boolean isChallengeComplete()
AuthScheme
Please note if the scheme returns true from this method in response
to a challenge, it effectively implies a failure to respond to this challenge
and termination of the authentication process.
isChallengeComplete in interface AuthSchemetrue if the authentication process has been completed,
false otherwise.Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.