/** * Get the {@link Credentials credentials} for the given authentication scope. * * @param authscope the {@link AuthScope authentication scope} * @return the credentials * * @see #setCredentials(AuthScope, Credentials) * * @since 3.0 */ public synchronized Credentials getCredentials(final AuthScope authscope) { if (authscope == null) { throw new IllegalArgumentException("Authentication scope may not be null"); } LOG.trace("enter HttpState.getCredentials(AuthScope)"); return matchCredentials(this.credMap, authscope); }
/** * Get the {@link Credentials proxy credentials} for the given authentication scope. * * @param authscope the {@link AuthScope authentication scope} * @return the credentials * * @see #setProxyCredentials(AuthScope, Credentials) * * @since 3.0 */ public synchronized Credentials getProxyCredentials(final AuthScope authscope) { if (authscope == null) { throw new IllegalArgumentException("Authentication scope may not be null"); } LOG.trace("enter HttpState.getProxyCredentials(AuthScope)"); return matchCredentials(this.proxyCred, authscope); }
/** * Get the {@link Credentials credentials} for the proxy host with the given * authentication scope. * * If the <i>realm</i> exists on <i>host</i>, return the coresponding credentials. * If the <i>host</i> exists with a <tt>null</tt> <i>realm</i>, return the corresponding * credentials. * If the <i>realm</i> exists with a <tt>null</tt> <i>host</i>, return the * corresponding credentials. If the <i>realm</i> does not exist, return * the default Credentials. If there are no default credentials, return * <code>null</code>. * * @param realm the authentication realm * @param proxyHost the proxy host the realm is on * @return the credentials * @see #setProxyCredentials(String, String, Credentials) * * @deprecated use #getProxyCredentials(AuthScope) */ public synchronized Credentials getProxyCredentials(String realm, String proxyHost) { LOG.trace("enter HttpState.getCredentials(String, String"); return matchCredentials(this.proxyCred, new AuthScope(proxyHost, AuthScope.ANY_PORT, realm, AuthScope.ANY_SCHEME)); }
/** * Get the {@link Credentials credentials} for the given authentication scope on the * given host. * * If the <i>realm</i> exists on <i>host</i>, return the coresponding credentials. * If the <i>host</i> exists with a <tt>null</tt> <i>realm</i>, return the corresponding * credentials. * If the <i>realm</i> exists with a <tt>null</tt> <i>host</i>, return the * corresponding credentials. If the <i>realm</i> does not exist, return * the default Credentials. If there are no default credentials, return * <code>null</code>. * * @param realm the authentication realm * @param host the host the realm is on * @return the credentials * * @see #setCredentials(String, String, Credentials) * * @deprecated use #getCredentials(AuthScope) */ public synchronized Credentials getCredentials(String realm, String host) { LOG.trace("enter HttpState.getCredentials(String, String"); return matchCredentials(this.credMap, new AuthScope(host, AuthScope.ANY_PORT, realm, AuthScope.ANY_SCHEME)); }
/** * Get the {@link Credentials proxy credentials} for the given authentication scope. * * @param authscope the {@link AuthScope authentication scope} * @return the credentials * * @see #setProxyCredentials(AuthScope, Credentials) * * @since 3.0 */ public synchronized Credentials getProxyCredentials(final AuthScope authscope) { if (authscope == null) { throw new IllegalArgumentException("Authentication scope may not be null"); } LOG.trace("enter HttpState.getProxyCredentials(AuthScope)"); return matchCredentials(this.proxyCred, authscope); }
/** * Get the {@link Credentials credentials} for the given authentication scope. * * @param authscope the {@link AuthScope authentication scope} * @return the credentials * * @see #setCredentials(AuthScope, Credentials) * * @since 3.0 */ public synchronized Credentials getCredentials(final AuthScope authscope) { if (authscope == null) { throw new IllegalArgumentException("Authentication scope may not be null"); } LOG.trace("enter HttpState.getCredentials(AuthScope)"); return matchCredentials(this.credMap, authscope); }
/** * Get the {@link Credentials proxy credentials} for the given authentication scope. * * @param authscope the {@link AuthScope authentication scope} * @return the credentials * * @see #setProxyCredentials(AuthScope, Credentials) * * @since 3.0 */ public synchronized Credentials getProxyCredentials(final AuthScope authscope) { if (authscope == null) { throw new IllegalArgumentException("Authentication scope may not be null"); } LOG.trace("enter HttpState.getProxyCredentials(AuthScope)"); return matchCredentials(this.proxyCred, authscope); }
/** * Get the {@link Credentials proxy credentials} for the given authentication scope. * * @param authscope the {@link AuthScope authentication scope} * @return the credentials * * @see #setProxyCredentials(AuthScope, Credentials) * * @since 3.0 */ public synchronized Credentials getProxyCredentials(final AuthScope authscope) { if (authscope == null) { throw new IllegalArgumentException("Authentication scope may not be null"); } LOG.trace("enter HttpState.getProxyCredentials(AuthScope)"); return matchCredentials(this.proxyCred, authscope); }
/** * Get the {@link Credentials proxy credentials} for the given authentication scope. * * @param authscope the {@link AuthScope authentication scope} * @return the credentials * * @see #setProxyCredentials(AuthScope, Credentials) * * @since 3.0 */ public synchronized Credentials getProxyCredentials(final AuthScope authscope) { if (authscope == null) { throw new IllegalArgumentException("Authentication scope may not be null"); } LOG.trace("enter HttpState.getProxyCredentials(AuthScope)"); return matchCredentials(this.proxyCred, authscope); }
/** * Get the {@link Credentials credentials} for the given authentication scope. * * @param authscope the {@link AuthScope authentication scope} * @return the credentials * * @see #setCredentials(AuthScope, Credentials) * * @since 3.0 */ public synchronized Credentials getCredentials(final AuthScope authscope) { if (authscope == null) { throw new IllegalArgumentException("Authentication scope may not be null"); } LOG.trace("enter HttpState.getCredentials(AuthScope)"); return matchCredentials(this.credMap, authscope); }
/** * Get the {@link Credentials credentials} for the given authentication scope. * * @param authscope the {@link AuthScope authentication scope} * @return the credentials * * @see #setCredentials(AuthScope, Credentials) * * @since 3.0 */ public synchronized Credentials getCredentials(final AuthScope authscope) { if (authscope == null) { throw new IllegalArgumentException("Authentication scope may not be null"); } LOG.trace("enter HttpState.getCredentials(AuthScope)"); return matchCredentials(this.credMap, authscope); }
/** * Get the {@link Credentials credentials} for the given authentication scope. * * @param authscope the {@link AuthScope authentication scope} * @return the credentials * * @see #setCredentials(AuthScope, Credentials) * * @since 3.0 */ public synchronized Credentials getCredentials(final AuthScope authscope) { if (authscope == null) { throw new IllegalArgumentException("Authentication scope may not be null"); } LOG.trace("enter HttpState.getCredentials(AuthScope)"); return matchCredentials(this.credMap, authscope); }
/** * Get the {@link Credentials credentials} for the proxy host with the given * authentication scope. * * If the <i>realm</i> exists on <i>host</i>, return the coresponding credentials. * If the <i>host</i> exists with a <tt>null</tt> <i>realm</i>, return the corresponding * credentials. * If the <i>realm</i> exists with a <tt>null</tt> <i>host</i>, return the * corresponding credentials. If the <i>realm</i> does not exist, return * the default Credentials. If there are no default credentials, return * <code>null</code>. * * @param realm the authentication realm * @param proxyHost the proxy host the realm is on * @return the credentials * @see #setProxyCredentials(String, String, Credentials) * * @deprecated use #getProxyCredentials(AuthScope) */ public synchronized Credentials getProxyCredentials(String realm, String proxyHost) { LOG.trace("enter HttpState.getCredentials(String, String"); return matchCredentials(this.proxyCred, new AuthScope(proxyHost, AuthScope.ANY_PORT, realm, AuthScope.ANY_SCHEME)); }
/** * Get the {@link Credentials credentials} for the given authentication scope on the * given host. * * If the <i>realm</i> exists on <i>host</i>, return the coresponding credentials. * If the <i>host</i> exists with a <tt>null</tt> <i>realm</i>, return the corresponding * credentials. * If the <i>realm</i> exists with a <tt>null</tt> <i>host</i>, return the * corresponding credentials. If the <i>realm</i> does not exist, return * the default Credentials. If there are no default credentials, return * <code>null</code>. * * @param realm the authentication realm * @param host the host the realm is on * @return the credentials * * @see #setCredentials(String, String, Credentials) * * @deprecated use #getCredentials(AuthScope) */ public synchronized Credentials getCredentials(String realm, String host) { LOG.trace("enter HttpState.getCredentials(String, String"); return matchCredentials(this.credMap, new AuthScope(host, AuthScope.ANY_PORT, realm, AuthScope.ANY_SCHEME)); }
/** * Get the {@link Credentials credentials} for the given authentication scope on the * given host. * * If the <i>realm</i> exists on <i>host</i>, return the coresponding credentials. * If the <i>host</i> exists with a <tt>null</tt> <i>realm</i>, return the corresponding * credentials. * If the <i>realm</i> exists with a <tt>null</tt> <i>host</i>, return the * corresponding credentials. If the <i>realm</i> does not exist, return * the default Credentials. If there are no default credentials, return * <code>null</code>. * * @param realm the authentication realm * @param host the host the realm is on * @return the credentials * * @see #setCredentials(String, String, Credentials) * * @deprecated use #getCredentials(AuthScope) */ public synchronized Credentials getCredentials(String realm, String host) { LOG.trace("enter HttpState.getCredentials(String, String"); return matchCredentials(this.credMap, new AuthScope(host, AuthScope.ANY_PORT, realm, AuthScope.ANY_SCHEME)); }
/** * Get the {@link Credentials credentials} for the proxy host with the given * authentication scope. * * If the <i>realm</i> exists on <i>host</i>, return the coresponding credentials. * If the <i>host</i> exists with a <tt>null</tt> <i>realm</i>, return the corresponding * credentials. * If the <i>realm</i> exists with a <tt>null</tt> <i>host</i>, return the * corresponding credentials. If the <i>realm</i> does not exist, return * the default Credentials. If there are no default credentials, return * <code>null</code>. * * @param realm the authentication realm * @param proxyHost the proxy host the realm is on * @return the credentials * @see #setProxyCredentials(String, String, Credentials) * * @deprecated use #getProxyCredentials(AuthScope) */ public synchronized Credentials getProxyCredentials(String realm, String proxyHost) { LOG.trace("enter HttpState.getCredentials(String, String"); return matchCredentials(this.proxyCred, new AuthScope(proxyHost, AuthScope.ANY_PORT, realm, AuthScope.ANY_SCHEME)); }
/** * Get the {@link Credentials credentials} for the proxy host with the given * authentication scope. * * If the <i>realm</i> exists on <i>host</i>, return the coresponding credentials. * If the <i>host</i> exists with a <tt>null</tt> <i>realm</i>, return the corresponding * credentials. * If the <i>realm</i> exists with a <tt>null</tt> <i>host</i>, return the * corresponding credentials. If the <i>realm</i> does not exist, return * the default Credentials. If there are no default credentials, return * <code>null</code>. * * @param realm the authentication realm * @param proxyHost the proxy host the realm is on * @return the credentials * @see #setProxyCredentials(String, String, Credentials) * * @deprecated use #getProxyCredentials(AuthScope) */ public synchronized Credentials getProxyCredentials(String realm, String proxyHost) { LOG.trace("enter HttpState.getCredentials(String, String"); return matchCredentials(this.proxyCred, new AuthScope(proxyHost, AuthScope.ANY_PORT, realm, AuthScope.ANY_SCHEME)); }
/** * Get the {@link Credentials credentials} for the proxy host with the given * authentication scope. * * If the <i>realm</i> exists on <i>host</i>, return the coresponding credentials. * If the <i>host</i> exists with a <tt>null</tt> <i>realm</i>, return the corresponding * credentials. * If the <i>realm</i> exists with a <tt>null</tt> <i>host</i>, return the * corresponding credentials. If the <i>realm</i> does not exist, return * the default Credentials. If there are no default credentials, return * <code>null</code>. * * @param realm the authentication realm * @param proxyHost the proxy host the realm is on * @return the credentials * @see #setProxyCredentials(String, String, Credentials) * * @deprecated use #getProxyCredentials(AuthScope) */ public synchronized Credentials getProxyCredentials(String realm, String proxyHost) { LOG.trace("enter HttpState.getCredentials(String, String"); return matchCredentials(this.proxyCred, new AuthScope(proxyHost, AuthScope.ANY_PORT, realm, AuthScope.ANY_SCHEME)); }
/** * Get the {@link Credentials credentials} for the given authentication scope on the * given host. * * If the <i>realm</i> exists on <i>host</i>, return the coresponding credentials. * If the <i>host</i> exists with a <tt>null</tt> <i>realm</i>, return the corresponding * credentials. * If the <i>realm</i> exists with a <tt>null</tt> <i>host</i>, return the * corresponding credentials. If the <i>realm</i> does not exist, return * the default Credentials. If there are no default credentials, return * <code>null</code>. * * @param realm the authentication realm * @param host the host the realm is on * @return the credentials * * @see #setCredentials(String, String, Credentials) * * @deprecated use #getCredentials(AuthScope) */ public synchronized Credentials getCredentials(String realm, String host) { LOG.trace("enter HttpState.getCredentials(String, String"); return matchCredentials(this.credMap, new AuthScope(host, AuthScope.ANY_PORT, realm, AuthScope.ANY_SCHEME)); }
/** * Get the {@link Credentials credentials} for the given authentication scope on the * given host. * * If the <i>realm</i> exists on <i>host</i>, return the coresponding credentials. * If the <i>host</i> exists with a <tt>null</tt> <i>realm</i>, return the corresponding * credentials. * If the <i>realm</i> exists with a <tt>null</tt> <i>host</i>, return the * corresponding credentials. If the <i>realm</i> does not exist, return * the default Credentials. If there are no default credentials, return * <code>null</code>. * * @param realm the authentication realm * @param host the host the realm is on * @return the credentials * * @see #setCredentials(String, String, Credentials) * * @deprecated use #getCredentials(AuthScope) */ public synchronized Credentials getCredentials(String realm, String host) { LOG.trace("enter HttpState.getCredentials(String, String"); return matchCredentials(this.credMap, new AuthScope(host, AuthScope.ANY_PORT, realm, AuthScope.ANY_SCHEME)); }