Examples of TrustStoreKey


Examples of com.sonatype.nexus.ssl.model.TrustStoreKey

    this.trustStore = checkNotNull(trustStore);
  }

  @Override
  public SSLContext select(final HttpContext context) {
    final TrustStoreKey ctxKey = getTrustStoreKey(context);
    if (ctxKey != null) {
      final SSLContext sslContext = trustStore.getSSLContextFor(ctxKey);
      if (sslContext != null) {
        log.debug("{} is using own Nexus SSL Trust Store for accessing remote", ctxKey);
        return sslContext;
View Full Code Here

Examples of com.sonatype.nexus.ssl.model.TrustStoreKey

      throws LdapDAOException
  {
    final DefaultLdapContextFactory ldapContextFactory = LdapConnectionUtils.getLdapContextFactory(
        ldapServer, useBackupUrl
    );
    final TrustStoreKey key = ldapTrustStoreKey(ldapServer.getId() == null ? "<unknown>" : ldapServer.getId());
    if ("ldaps".equals(ldapServer.getConnectionInfo().getProtocol())) {
      final SSLContext sslContext = trustStore.getSSLContextFor(key);
      if (sslContext != null) {
        log.debug(
            "{} is using a Nexus SSL Trust Store for accessing {}",
View Full Code Here

Examples of com.sonatype.nexus.ssl.model.TrustStoreKey

    ldapContextFactory.setSystemUsername(connectionDto.getSystemUsername());
    ldapContextFactory.setUrl(new LdapURL(connectionDto.getProtocol(), connectionDto.getHost(), connectionDto
        .getPort(), connectionDto.getSearchBase()).toString());
    ldapContextFactory.setAuthentication(connectionDto.getAuthScheme());

    final TrustStoreKey key = ldapTrustStoreKey(ldapServerId == null ? "<unknown>" : ldapServerId);
    if ("ldaps".equals(connectionDto.getProtocol())) {
      final SSLContext sslContext = trustStore.getSSLContextFor(key);
      if (sslContext != null) {
        getLogger().debug(
            "{} is using a Nexus SSL Trust Store for accessing {}",
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.