public class BasicAuthScope
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
host |
private java.lang.String |
port |
private java.lang.String |
realm |
| Constructor and Description |
|---|
BasicAuthScope() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getHost() |
java.lang.String |
getPort() |
java.lang.String |
getRealm() |
org.apache.http.auth.AuthScope |
getScope(org.apache.http.HttpHost targetHost)
Given a HttpHost, return scope with overrides from appropriate basicAuth
configuration.
|
org.apache.http.auth.AuthScope |
getScope(java.lang.String host,
int port)
Create an authScope given the /repository/host and /repository/password
and the /server/basicAuth or /server/proxyBasicAuth host, port and realm
settings.
|
void |
setHost(java.lang.String host) |
void |
setPort(java.lang.String port) |
void |
setRealm(java.lang.String realm) |
private java.lang.String host
private java.lang.String port
private java.lang.String realm
public java.lang.String getHost()
public void setHost(java.lang.String host)
host - the host to setpublic java.lang.String getRealm()
public void setRealm(java.lang.String realm)
realm - the realm to setpublic org.apache.http.auth.AuthScope getScope(java.lang.String host,
int port)
host - The server setting's /server/host valueport - The server setting's /server/port valuepublic java.lang.String getPort()
public void setPort(java.lang.String port)
port - the port to setpublic org.apache.http.auth.AuthScope getScope(org.apache.http.HttpHost targetHost)
Note: Protocol is ignored. AuthScope impl ignores it as well, but if that changed, there could be a problem.
targetHost -