return; if (authstate.isAuthRequested() || !authscheme.isConnectionBased()) { AuthScope authscope = new AuthScope( conn.getProxyHost(), conn.getProxyPort(), authscheme.getRealm(), authscheme.getSchemeName()); if (LOG.isDebugEnabled()) { LOG.debug("Authenticating with " + authscope); String authstring = authscheme.authenticate(credentials, method); if (authstring != null) { method.addRequestHeader(new Header(PROXY_AUTH_RESP, authstring, true));
authscheme.getRealm(), authscheme.getSchemeName()); if (authstate.isAuthAttempted() && authscheme.isComplete()) {
String id = authscheme.getSchemeName(); if (LOG.isDebugEnabled()) { LOG.debug("Using authentication scheme: " + id); " authorization challenge expected, but not found"); authscheme.processChallenge(challenge); LOG.debug("Authorization challenge processed"); return authscheme;
public String toString() { StringBuffer buffer = new StringBuffer(); buffer.append("Auth state: auth requested ["); buffer.append(this.authRequested); buffer.append("]; auth attempted ["); buffer.append(this.authAttempted); if (this.authScheme != null) { buffer.append("]; auth scheme ["); buffer.append(this.authScheme.getSchemeName()); buffer.append("]; realm ["); buffer.append(this.authScheme.getRealm()); } buffer.append("] preemptive ["); buffer.append(this.preemptive); buffer.append("]"); return buffer.toString(); } }
String realm = authscheme.getRealm(); if (LOG.isDebugEnabled()) { StringBuffer buffer = new StringBuffer(); throw new CredentialsNotAvailableException(buffer.toString()); String auth = authscheme.authenticate(credentials, method); if (auth != null) { String s = proxy ? PROXY_AUTH_RESP : WWW_AUTH_RESP;
/** * Returns the authentication realm. * * @return the name of the authentication realm */ public String getRealm() { if (this.authScheme != null) { return this.authScheme.getRealm(); } else { return null; } }
if(retryCount == 0 && authstate.isAuthAttempted() && authscheme.isComplete()) { return null; // Stop the retry. Credentials credentials = null; scheme = HTTPAuthScheme.schemeForName(authscheme.getSchemeName()); LOG.error("HTTPAuthProvider: unsupported scheme: "+authscheme.getSchemeName());
/** * @param scheme the request scheme for which Credentials are asked * @param scope the configured authorization scope * @return <code>true</code> if the scope's scheme matches the provided one */ protected boolean matchScheme(final AuthScope scope, final AuthScheme scheme) { return scope.getScheme() == AuthScope.ANY_SCHEME || scope.getScheme().equals(scheme.getSchemeName()); }
/** * Builds a key with the specified data. * @param scheme the scheme * @param host the server name * @param port the server port * @param proxy is proxy * @return the new key */ protected Object buildKey(final AuthScheme scheme, final String host, final int port, final boolean proxy) { return scheme.getSchemeName() + " " + scheme.getRealm() + " " + host + ":" + port + " " + proxy; }
String realm = authscheme.getRealm(); if (LOG.isDebugEnabled()) { StringBuffer buffer = new StringBuffer(); throw new CredentialsNotAvailableException(buffer.toString()); String auth = authscheme.authenticate(credentials, method); if (auth != null) { String s = proxy ? PROXY_AUTH_RESP : WWW_AUTH_RESP;
/** * Returns the authentication realm. * * @return the name of the authentication realm */ public String getRealm() { if (this.authScheme != null) { return this.authScheme.getRealm(); } else { return null; } }
/** * @param scheme the request scheme for which Credentials are asked * @param scope the configured authorization scope * @return <code>true</code> if the scope's scheme matches the provided one */ protected boolean matchScheme(final AuthScope scope, final AuthScheme scheme) { return scope.getScheme() == AuthScope.ANY_SCHEME || scope.getScheme().equals(scheme.getSchemeName()); }
return; if (authstate.isAuthRequested() || !authscheme.isConnectionBased()) { String host = method.getParams().getVirtualHost(); if (host == null) { AuthScope authscope = new AuthScope( host, port, authscheme.getRealm(), authscheme.getSchemeName()); if (LOG.isDebugEnabled()) { LOG.debug("Authenticating with " + authscope); String authstring = authscheme.authenticate(credentials, method); if (authstring != null) { method.addRequestHeader(new Header(WWW_AUTH_RESP, authstring, true));
AuthScope authscope = new AuthScope( host, port, authscheme.getRealm(), authscheme.getSchemeName()); if (authstate.isAuthAttempted() && authscheme.isComplete()) {
/** * Builds a key with the specified data. * @param scheme the scheme * @param host the server name * @param port the server port * @param proxy is proxy * @return the new key */ protected Object buildKey(final AuthScheme scheme, final String host, final int port, final boolean proxy) { return scheme.getSchemeName() + " " + scheme.getRealm() + " " + host + ":" + port + " " + proxy; }
String realm = authscheme.getRealm(); if (LOG.isDebugEnabled()) { StringBuffer buffer = new StringBuffer(); throw new CredentialsNotAvailableException(buffer.toString()); String auth = authscheme.authenticate(credentials, method); if (auth != null) { String s = proxy ? PROXY_AUTH_RESP : WWW_AUTH_RESP;
String id = authscheme.getSchemeName(); if (LOG.isDebugEnabled()) { LOG.debug("Using authentication scheme: " + id); " authorization challenge expected, but not found"); authscheme.processChallenge(challenge); LOG.debug("Authorization challenge processed"); return authscheme;
/** * Returns the authentication realm. * * @return the name of the authentication realm */ public String getRealm() { if (this.authScheme != null) { return this.authScheme.getRealm(); } else { return null; } }
/** * @param scheme the request scheme for which Credentials are asked * @param scope the configured authorization scope * @return <code>true</code> if the scope's scheme matches the provided one */ protected boolean matchScheme(final AuthScope scope, final AuthScheme scheme) { return scope.getScheme() == AuthScope.ANY_SCHEME || scope.getScheme().equals(scheme.getSchemeName()); }
return; if (authstate.isAuthRequested() || !authscheme.isConnectionBased()) { AuthScope authscope = new AuthScope( conn.getProxyHost(), conn.getProxyPort(), authscheme.getRealm(), authscheme.getSchemeName()); if (LOG.isDebugEnabled()) { LOG.debug("Authenticating with " + authscope); String authstring = authscheme.authenticate(credentials, method); if (authstring != null) { method.addRequestHeader(new Header(PROXY_AUTH_RESP, authstring, true));