Package org.sonatype.nexus.proxy.repository

Examples of org.sonatype.nexus.proxy.repository.ClientSSLRemoteAuthenticationSettings


  {
    if (model != null) {
      doValidate(model);

      if (StringUtils.isNotBlank(model.getKeyStore()) || StringUtils.isNotBlank(model.getTrustStore())) {
        return new ClientSSLRemoteAuthenticationSettings(new File(model.getTrustStore()), model
            .getTrustStorePassword(), new File(model.getKeyStore()), model.getKeyStorePassword());
      }
      else if (StringUtils.isNotBlank(model.getNtlmDomain())) {
        return new NtlmRemoteAuthenticationSettings(model.getUsername(), model.getPassword(), model
            .getNtlmDomain(), model.getNtlmHost());
View Full Code Here


        remoteAuthentication.setUsername(up.getUsername());

        remoteAuthentication.setPassword(up.getPassword());
      }
      else if (settings instanceof ClientSSLRemoteAuthenticationSettings) {
        ClientSSLRemoteAuthenticationSettings cs = (ClientSSLRemoteAuthenticationSettings) settings;

        remoteAuthentication.setKeyStore(cs.getKeyStore().getAbsolutePath());

        remoteAuthentication.setKeyStorePassword(cs.getKeyStorePassword());

        remoteAuthentication.setTrustStore(cs.getTrustStore().getAbsolutePath());

        remoteAuthentication.setTrustStorePassword(cs.getTrustStorePassword());
      }
      else {
        // ??
      }
View Full Code Here

TOP

Related Classes of org.sonatype.nexus.proxy.repository.ClientSSLRemoteAuthenticationSettings

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.