private AuthenticationResult authenticateConnection(final DruidConnection connection) { Map<String, Object> context = connection.context(); for (Authenticator authenticator : authenticators) { AuthenticationResult authenticationResult = authenticator.authenticateJDBCContext(context); if (authenticationResult != null) { return authenticationResult; } } return null; }
private AuthenticationResult authenticateConnection(final DruidConnection connection) { Map<String, Object> context = connection.context(); for (Authenticator authenticator : authenticators) { AuthenticationResult authenticationResult = authenticator.authenticateJDBCContext(context); if (authenticationResult != null) { return authenticationResult; } } return null; }