authStrategy.authFailed(host, authState.getAuthScheme(), context); authStrategy.authSucceeded(host, authState.getAuthScheme(), context); break; case SUCCESS:
private static Principal getAuthPrincipal(final AuthStateHC4 authState) { final AuthScheme scheme = authState.getAuthScheme(); if (scheme != null && scheme.isComplete() && scheme.isConnectionBased()) { final Credentials creds = authState.getCredentials(); if (creds != null) { return creds.getUserPrincipal(); } } return null; }
final AuthScheme authScheme = authState.getAuthScheme(); switch (authState.getState()) { case FAILURE: Log.d(TAG, "Authentication failed"); authStrategy.authFailed(host, authState.getAuthScheme(), context); authState.reset(); authState.setState(AuthProtocolState.FAILURE);
final AuthStateHC4 authState, final HttpContext context) throws HttpException, IOException { AuthScheme authScheme = authState.getAuthScheme(); Credentials creds = authState.getCredentials(); switch (authState.getState()) {
final AuthScheme authScheme = proxyAuthState.getAuthScheme(); if (authScheme != null && authScheme.isConnectionBased()) { if (Log.isLoggable(TAG, Log.DEBUG)) {
managedConn.close(); if (proxyAuthState.getState() == AuthProtocolState.SUCCESS && proxyAuthState.getAuthScheme() != null && proxyAuthState.getAuthScheme().isConnectionBased()) { if (Log.isLoggable(TAG, Log.DEBUG)) { Log.d(TAG, "Resetting proxy auth state"); && targetAuthState.getAuthScheme() != null && targetAuthState.getAuthScheme().isConnectionBased()) { if (Log.isLoggable(TAG, Log.DEBUG)) { Log.d(TAG, "Resetting target auth state");