Package org.mapfish.print.http
Class MfCredentialsProvider
java.lang.Object
org.mapfish.print.http.MfCredentialsProvider
- All Implemented Interfaces:
org.apache.http.client.CredentialsProvider
public final class MfCredentialsProvider
extends Object
implements org.apache.http.client.CredentialsProvider
A Route planner that obtains credentials from the configuration that is currently in
MfClientHttpRequestFactoryImpl.CURRENT_CONFIGURATION.
If authentication is not found in configuration then it will fall back to SystemDefaultCredentialsProvider
MfClientHttpRequestFactoryImpl.Request will set the correct configuration before the
request is executed so that correct proxies will be set.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()org.apache.http.auth.CredentialsgetCredentials(org.apache.http.auth.AuthScope authscope) voidsetCredentials(org.apache.http.auth.AuthScope authscope, org.apache.http.auth.Credentials credentials)
-
Constructor Details
-
MfCredentialsProvider
public MfCredentialsProvider()
-
-
Method Details
-
setCredentials
public void setCredentials(org.apache.http.auth.AuthScope authscope, org.apache.http.auth.Credentials credentials) - Specified by:
setCredentialsin interfaceorg.apache.http.client.CredentialsProvider
-
getCredentials
public org.apache.http.auth.Credentials getCredentials(org.apache.http.auth.AuthScope authscope) - Specified by:
getCredentialsin interfaceorg.apache.http.client.CredentialsProvider
-
clear
public void clear()- Specified by:
clearin interfaceorg.apache.http.client.CredentialsProvider
-