Skip to content

Commit

Permalink
SSLUtils, minor renaming.
Browse files Browse the repository at this point in the history
  • Loading branch information
marco-brandizi committed Oct 23, 2024
1 parent 4eead89 commit 87e6262
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main/java/uk/ac/ebi/utils/opt/net/SSLUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ public void checkServerTrusted ( X509Certificate[] certs, String authType ) {/**
}


private static final SSLContext FAKE_SSL_CONTEXT;
private static final DefaultClientTlsStrategy FAKE_TLS_STRATEGY;
private static final HttpClientConnectionManager FAKE_HTTP_CLIENT_CONNECTION_MANAGER;
public static final SSLContext FAKE_SSL_CONTEXT;
public static final DefaultClientTlsStrategy FAKE_TLS_STRATEGY;
public static final HttpClientConnectionManager FAKE_HTTP_CLIENT_CONNECTION_MANAGER;

private static final AuthScope FAKE_CLIENT_CREDENTIALS = new AuthScope ( null, -1 );
public static final AuthScope FAKE_AUTH_SCOPE = new AuthScope ( null, -1 );

static
{
Expand Down Expand Up @@ -163,7 +163,7 @@ public static HttpClient noCertClient ( String user, String pwd )
{
var credsProvider = new BasicCredentialsProvider ();
Credentials credentials = new UsernamePasswordCredentials ( user, pwd.toCharArray () );
credsProvider.setCredentials ( FAKE_CLIENT_CREDENTIALS, credentials );
credsProvider.setCredentials ( FAKE_AUTH_SCOPE, credentials );

builder.setDefaultCredentialsProvider ( credsProvider );
}
Expand Down

0 comments on commit 87e6262

Please sign in to comment.