protected CRemoteAuthentication convertAuthentication(AuthenticationSettings authentication, String oldPassword) { if (authentication == null) { return null; } CRemoteAuthentication appModelSettings = new CRemoteAuthentication(); appModelSettings.setUsername(authentication.getUsername()); appModelSettings.setPassword(this.getActualPassword(authentication.getPassword(), oldPassword)); appModelSettings.setNtlmDomain(authentication.getNtlmDomain()); appModelSettings.setNtlmHost(authentication.getNtlmHost()); return appModelSettings; }
protected CRemoteAuthentication convertAuthentication( AuthenticationSettings authentication, String oldPassword ) { if ( authentication == null ) { return null; } CRemoteAuthentication appModelSettings = new CRemoteAuthentication(); appModelSettings.setUsername( authentication.getUsername() ); appModelSettings.setPassword( this.getActualPassword( authentication.getPassword(), oldPassword ) ); appModelSettings.setNtlmDomain( authentication.getNtlmDomain() ); appModelSettings.setNtlmHost( authentication.getNtlmHost() ); return appModelSettings; }
remoteAuthentication.setNtlmHost( up.getNtlmHost() );
public RemoteHttpProxySettings convert(final RemoteHttpProxySettingsDTO settings, final String oldPassword) throws ConfigurationException { if (settings == null || StringUtils.isEmpty(settings.getProxyHostname())) { return null; } final RemoteHttpProxySettings result = new DefaultRemoteHttpProxySettings(); result.setHostname(settings.getProxyHostname()); result.setPort(settings.getProxyPort()); if (settings.getAuthentication() != null) { CRemoteAuthentication auth = new CRemoteAuthentication(); auth.setUsername(settings.getAuthentication().getUsername()); auth.setPassword(getActualPassword(settings.getAuthentication().getPassword(), oldPassword)); auth.setNtlmDomain(settings.getAuthentication().getNtlmDomain()); auth.setNtlmHost(settings.getAuthentication().getNtlmHost()); result.setProxyAuthentication( getAuthenticationInfoConverter().convertAndValidateFromModel(auth)); } else { result.setProxyAuthentication(null); } return result; }
value.setNtlmHost( cRemoteAuthentication.getNtlmHost() );
cRemoteAuthentication.setNtlmHost( getTrimmedValue( parser.nextText() ) );
auth.setNtlmHost( s.getAuthentication().getNtlmHost() );