@Experimental public class WindowsNegotiateScheme extends Object implements AuthScheme
This will delegate negotiation to the windows machine.
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
String |
generateAuthResponse(org.apache.hc.core5.http.HttpHost host,
org.apache.hc.core5.http.HttpRequest request,
org.apache.hc.core5.http.protocol.HttpContext context) |
static String |
getCurrentUsername()
Get the SAM-compatible username of the currently logged-on user.
|
String |
getName() |
Principal |
getPrincipal() |
String |
getRealm() |
boolean |
isChallengeComplete() |
boolean |
isConnectionBased() |
boolean |
isResponseReady(org.apache.hc.core5.http.HttpHost host,
CredentialsProvider credentialsProvider,
org.apache.hc.core5.http.protocol.HttpContext context) |
void |
processChallenge(AuthChallenge authChallenge,
org.apache.hc.core5.http.protocol.HttpContext context) |
public void dispose()
public String getName()
getName
in interface AuthScheme
public boolean isConnectionBased()
isConnectionBased
in interface AuthScheme
public String getRealm()
getRealm
in interface AuthScheme
public void processChallenge(AuthChallenge authChallenge, org.apache.hc.core5.http.protocol.HttpContext context) throws MalformedChallengeException
processChallenge
in interface AuthScheme
MalformedChallengeException
public boolean isResponseReady(org.apache.hc.core5.http.HttpHost host, CredentialsProvider credentialsProvider, org.apache.hc.core5.http.protocol.HttpContext context) throws AuthenticationException
isResponseReady
in interface AuthScheme
AuthenticationException
public static String getCurrentUsername()
public Principal getPrincipal()
getPrincipal
in interface AuthScheme
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
generateAuthResponse
in interface AuthScheme
AuthenticationException
public boolean isChallengeComplete()
isChallengeComplete
in interface AuthScheme
Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.