public class BasicAuthScope extends Object
Constructor and Description |
---|
BasicAuthScope() |
Modifier and Type | Method and Description |
---|---|
String |
getHost() |
String |
getPort() |
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(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(String host) |
void |
setPort(String port) |
void |
setRealm(String realm) |
public BasicAuthScope()
public org.apache.http.auth.AuthScope getScope(String host, int port)
host
- The server setting's /server/host valueport
- The server setting's /server/port valuepublic 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
- Copyright © 2003–2015 The Apache Software Foundation. All rights reserved.