Class BasicAuthScope
java.lang.Object
org.apache.maven.wagon.shared.http.BasicAuthScope
- Since:
- 2.8
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetHost()
getPort()
getRealm()
org.apache.http.auth.AuthScope
Create an authScope given the /repository/host and /repository/password and the /server/basicAuth or /server/proxyBasicAuth host, port and realm settings.org.apache.http.auth.AuthScope
getScope
(org.apache.http.HttpHost targetHost) Given a HttpHost, return scope with overrides from appropriate basicAuth configuration.void
void
void
-
Constructor Details
-
BasicAuthScope
public BasicAuthScope()
-
-
Method Details
-
getHost
- Returns:
- the host
-
setHost
- Parameters:
host
- the host to set
-
getRealm
- Returns:
- the realm
-
setRealm
- Parameters:
realm
- the realm to set
-
getScope
Create an authScope given the /repository/host and /repository/password and the /server/basicAuth or /server/proxyBasicAuth host, port and realm settings. The basicAuth setting should override the repository settings host and/or port if host, port or realm is set to "ANY". Realm can also be set to a specific string and will be set if /server/basicAuthentication/realm is non-null- Parameters:
host
- The server setting's /server/host valueport
- The server setting's /server/port value- Returns:
-
getPort
- Returns:
- the port
-
setPort
- Parameters:
port
- the port to set
-
getScope
public org.apache.http.auth.AuthScope getScope(org.apache.http.HttpHost targetHost) Given a HttpHost, return scope with overrides from appropriate basicAuth configuration.Note: Protocol is ignored. AuthScope impl ignores it as well, but if that changed, there could be a problem.
- Parameters:
targetHost
-- Returns:
-