public class ProxyClientConfig extends Object
Constructor and Description |
---|
ProxyClientConfig() |
Modifier and Type | Method and Description |
---|---|
static Map<String,Object> |
createNtlmProxyClientConfig(String proxyUri,
String username,
String password,
String workstation,
String domain)
Create a Map instance set up to use an NTLM proxy server that can be passed to the GitLabAPi constructors
and login methods to configure the GitLabApi instance to use an NTLM proxy server.
|
static Map<String,Object> |
createProxyClientConfig(String proxyUri)
Create a Map instance with properties set up to use a proxy server that can be passed to the
GitLabAPi constructors and login methods to configure the GitLabApi instance to use a proxy server.
|
static Map<String,Object> |
createProxyClientConfig(String proxyUri,
String username,
String password)
Create a Map instance set up to use a proxy server that can be passed to the GitLabAPi constructors
and login methods to configure the GitLabApi instance to use a proxy server.
|
public static Map<String,Object> createProxyClientConfig(String proxyUri)
proxyUri
- the URI of the proxy serverpublic static Map<String,Object> createProxyClientConfig(String proxyUri, String username, String password)
proxyUri
- the URI of the proxy serverusername
- the username for basic auth with the proxy serverpassword
- the password for basic auth with the proxy serverpublic static Map<String,Object> createNtlmProxyClientConfig(String proxyUri, String username, String password, String workstation, String domain)
proxyUri
- the URI of the proxy serverusername
- the user name. This should not include the domain to authenticate with.
For example: "user" is correct whereas "DOMAIN\user" is not.password
- the passwordworkstation
- the workstation the authentication request is originating from. Essentially, the computer name for this machine.domain
- the domain to authenticate withinCopyright © 2019. All rights reserved.