/** * Method upgradeCRemoteAuthentication. * * @param cRemoteAuthentication * @return CRemoteAuthentication */ public org.sonatype.nexus.configuration.model.CRemoteAuthentication upgradeCRemoteAuthentication( org.sonatype.nexus.configuration.model.v2_7_0.CRemoteAuthentication cRemoteAuthentication ) { return upgradeCRemoteAuthentication( cRemoteAuthentication, new org.sonatype.nexus.configuration.model.CRemoteAuthentication() ); } //-- org.sonatype.nexus.configuration.model.CRemoteAuthentication upgradeCRemoteAuthentication( org.sonatype.nexus.configuration.model.v2_7_0.CRemoteAuthentication )
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; }
CRemoteAuthentication remoteAuthentication = new CRemoteAuthentication();
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; }
CRemoteAuthentication cRemoteAuthentication = new CRemoteAuthentication(); for ( int i = parser.getAttributeCount() - 1; i >= 0; i-- )
CRemoteAuthentication auth = new CRemoteAuthentication();