Home | History | Annotate | Download | only in auth

Lines Matching refs:host

38  * The class represents an authentication scope consisting of a host name,
55 * The <tt>null</tt> value represents any host. In the future versions of
76 * Default scope matching any host, port, realm and authentication scheme.
88 /** The host the credentials apply to. */
89 private final String host;
95 * <tt>host</tt>, <tt>port</tt>, <tt>realm</tt>, and
98 * @param host the host the credentials apply to. May be set
100 * any host.
111 public AuthScope(final String host, int port,
114 this.host = (host == null) ? ANY_HOST: host.toLowerCase(Locale.ENGLISH);
121 * <tt>host</tt>, <tt>port</tt>, <tt>realm</tt>, and any
124 * @param host the host the credentials apply to. May be set
126 * any host.
134 public AuthScope(final String host, int port, final String realm) {
135 this(host, port, realm, ANY_SCHEME);
139 * <tt>host</tt>, <tt>port</tt>, any realm name, and any
142 * @param host the host the credentials apply to. May be set
144 * any host.
149 public AuthScope(final String host, int port) {
150 this(host, port, ANY_REALM, ANY_SCHEME);
161 this.host = authscope.getHost();
168 * @return the host
171 return this.host;
225 if (LangUtils.equals(this.host, that.host)) {
228 if (this.host != ANY_HOST && that.host != ANY_HOST) {
251 LangUtils.equals(this.host, that.host)
274 if (this.host != null) {
276 buffer.append(this.host);
291 hash = LangUtils.hashCode(hash, this.host);