getLogger().info( "... {} authentication setup for NTLM domain '{}'", authScope, nras.getNtlmDomain() ); credentials = new NTCredentials( nras.getUsername(), nras.getPassword(), nras.getNtlmHost(), nras.getNtlmDomain() );
httpConfiguration.setHost( nras.getNtlmHost() ); new NTCredentials( nras.getUsername(), nras.getPassword(), nras.getNtlmHost(), nras.getNtlmDomain() ) ); httpConfiguration.setHost( nras.getNtlmHost() ); new NTCredentials( nras.getUsername(), nras.getPassword(), nras.getNtlmHost(), nras.getNtlmDomain() ) );
/** * Externalized Nexus object to DTO's conversion. */ public static AuthenticationSettings convert(RemoteAuthenticationSettings settings) { if (settings == null) { return null; } AuthenticationSettings auth = new AuthenticationSettings(); if (settings instanceof ClientSSLRemoteAuthenticationSettings) { // huh? } else if (settings instanceof NtlmRemoteAuthenticationSettings) { NtlmRemoteAuthenticationSettings up = (NtlmRemoteAuthenticationSettings) settings; auth.setUsername(up.getUsername()); auth.setPassword(PASSWORD_PLACE_HOLDER); auth.setNtlmHost(up.getNtlmHost()); auth.setNtlmDomain(up.getNtlmDomain()); } else if (settings instanceof UsernamePasswordRemoteAuthenticationSettings) { UsernamePasswordRemoteAuthenticationSettings up = (UsernamePasswordRemoteAuthenticationSettings) settings; auth.setUsername(up.getUsername()); auth.setPassword(PASSWORD_PLACE_HOLDER); } return auth; }
auth.setNtlmHost( up.getNtlmHost() );
remoteAuthentication.setNtlmHost( up.getNtlmHost() );
nras.getNtlmDomain() ).setNtlmHost( nras.getNtlmHost() ).build();