private final X509TrustManager[] trustManagers;
private final KeyStoreReader keyStoreReader;
private final SecureProtocol secureProtocol;
public SecureSocketContext(KeyStoreReader keyStoreReader, SecureProtocol secureProtocol) {
this.trustManager = new AnonymousTrustManager();
this.trustManagers = new X509TrustManager[]{trustManager};
this.keyStoreReader = keyStoreReader;
this.secureProtocol = secureProtocol;
}