Package org.mapfish.print.http
Class MfCredentialsProvider
java.lang.Object
org.mapfish.print.http.MfCredentialsProvider
- All Implemented Interfaces:
org.apache.hc.client5.http.auth.CredentialsProvider
public final class MfCredentialsProvider
extends Object
implements org.apache.hc.client5.http.auth.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 TypeMethodDescriptionorg.apache.hc.client5.http.auth.CredentialsgetCredentials(org.apache.hc.client5.http.auth.AuthScope authScope, org.apache.hc.core5.http.protocol.HttpContext context)
-
Constructor Details
-
MfCredentialsProvider
public MfCredentialsProvider()
-
-
Method Details
-
getCredentials
public org.apache.hc.client5.http.auth.Credentials getCredentials(org.apache.hc.client5.http.auth.AuthScope authScope, org.apache.hc.core5.http.protocol.HttpContext context) - Specified by:
getCredentialsin interfaceorg.apache.hc.client5.http.auth.CredentialsProvider
-