Class DemuxCredentialsProvider
- java.lang.Object
-
- org.eclipse.aether.transport.http.DemuxCredentialsProvider
-
- All Implemented Interfaces:
org.apache.http.client.CredentialsProvider
final class DemuxCredentialsProvider extends java.lang.Object implements org.apache.http.client.CredentialsProviderCredentials provider that helps to isolate server from proxy credentials. Apache HttpClient uses a single provider for both server and proxy auth, using the auth scope (host, port, etc.) to select the proper credentials. With regard to redirects, we use an auth scope for server credentials that's not specific enough to not be mistaken for proxy auth. This provider helps to maintain the proper isolation.
-
-
Field Summary
Fields Modifier and Type Field Description private org.apache.http.HttpHostproxyprivate org.apache.http.client.CredentialsProviderproxyCredentialsProviderprivate org.apache.http.client.CredentialsProviderserverCredentialsProvider
-
Constructor Summary
Constructors Constructor Description DemuxCredentialsProvider(org.apache.http.client.CredentialsProvider serverCredentialsProvider, org.apache.http.client.CredentialsProvider proxyCredentialsProvider, org.apache.http.HttpHost proxy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()org.apache.http.auth.CredentialsgetCredentials(org.apache.http.auth.AuthScope authScope)private org.apache.http.client.CredentialsProvidergetDelegate(org.apache.http.auth.AuthScope authScope)voidsetCredentials(org.apache.http.auth.AuthScope authScope, org.apache.http.auth.Credentials credentials)
-
-
-
Method Detail
-
getDelegate
private org.apache.http.client.CredentialsProvider getDelegate(org.apache.http.auth.AuthScope authScope)
-
getCredentials
public org.apache.http.auth.Credentials getCredentials(org.apache.http.auth.AuthScope authScope)
- Specified by:
getCredentialsin interfaceorg.apache.http.client.CredentialsProvider
-
setCredentials
public void setCredentials(org.apache.http.auth.AuthScope authScope, org.apache.http.auth.Credentials credentials)- Specified by:
setCredentialsin interfaceorg.apache.http.client.CredentialsProvider
-
clear
public void clear()
- Specified by:
clearin interfaceorg.apache.http.client.CredentialsProvider
-
-