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.setPassword( up.getPassword() ); remoteAuthentication.setPassword( up.getPassword() );
auth.setPassword( encryptDecryptPassword( auth.getPassword(), encrypt, mask ) ); auth.setPassword( encryptDecryptPassword( auth.getPassword(), encrypt, mask ) ); auth.setPassword( encryptDecryptPassword( auth.getPassword(), encrypt, mask ) );
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.setPassword( cRemoteAuthentication.getPassword() );
cRemoteAuthentication.setPassword( getTrimmedValue( parser.nextText() ) );
auth.setPassword( this.getActualPassword( s.getAuthentication().getPassword(), oldPassword ) );