use of ch.cyberduck.core.udt.UDTProxyConfigurator in project cyberduck by iterate-ch.
the class QloudsonicTransferAcceleration method configure.
@Override
public void configure(final boolean enable, final Path file) throws BackgroundException {
final Location.Name location = session.getFeature(Location.class).getLocation(file);
if (Location.unknown.equals(location)) {
throw new AccessDeniedException("Cannot read bucket location");
}
final UDTProxyConfigurator configurator = new UDTProxyConfigurator(location, this.provider(), new KeychainX509TrustManager(new DisabledCertificateTrustCallback(), new DefaultTrustManagerHostnameCallback(session.getHost()), new DisabledCertificateStore()), new KeychainX509KeyManager(new DisabledCertificateIdentityCallback(), session.getHost(), new DisabledCertificateStore()));
configurator.configure(session);
}
Aggregations