@Contract(threading=SAFE) public class WindowsCredentialsProvider extends Object implements CredentialsProvider
CredentialsProvider implementation that always returns
CurrentWindowsCredentials instance to NTLM
and SPNego authentication challenges.
EXPERIMENTAL
| Constructor and Description |
|---|
WindowsCredentialsProvider(CredentialsProvider provider) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears all credentials.
|
Credentials |
getCredentials(AuthScope authscope)
Get the
credentials for the given authentication scope. |
void |
setCredentials(AuthScope authscope,
Credentials credentials)
Sets the
credentials for the given authentication
scope. |
public WindowsCredentialsProvider(CredentialsProvider provider)
public Credentials getCredentials(AuthScope authscope)
CredentialsProvidercredentials for the given authentication scope.getCredentials in interface CredentialsProviderauthscope - the authentication scopeCredentialsProvider.setCredentials(AuthScope, Credentials)public void setCredentials(AuthScope authscope, Credentials credentials)
CredentialsProvidercredentials for the given authentication
scope. Any previous credentials for the given scope will be overwritten.setCredentials in interface CredentialsProviderauthscope - the authentication scopecredentials - the authentication credentials
for the given scope.CredentialsProvider.getCredentials(AuthScope)public void clear()
CredentialsProviderclear in interface CredentialsProviderCopyright © 1999–2022 The Apache Software Foundation. All rights reserved.