Search in sources :

Example 1 with UDTProxyConfigurator

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);
}
Also used : AccessDeniedException(ch.cyberduck.core.exception.AccessDeniedException) DisabledCertificateStore(ch.cyberduck.core.DisabledCertificateStore) KeychainX509KeyManager(ch.cyberduck.core.ssl.KeychainX509KeyManager) DefaultTrustManagerHostnameCallback(ch.cyberduck.core.ssl.DefaultTrustManagerHostnameCallback) DisabledCertificateIdentityCallback(ch.cyberduck.core.DisabledCertificateIdentityCallback) KeychainX509TrustManager(ch.cyberduck.core.ssl.KeychainX509TrustManager) DisabledCertificateTrustCallback(ch.cyberduck.core.DisabledCertificateTrustCallback) Location(ch.cyberduck.core.features.Location) UDTProxyConfigurator(ch.cyberduck.core.udt.UDTProxyConfigurator)

Aggregations

DisabledCertificateIdentityCallback (ch.cyberduck.core.DisabledCertificateIdentityCallback)1 DisabledCertificateStore (ch.cyberduck.core.DisabledCertificateStore)1 DisabledCertificateTrustCallback (ch.cyberduck.core.DisabledCertificateTrustCallback)1 AccessDeniedException (ch.cyberduck.core.exception.AccessDeniedException)1 Location (ch.cyberduck.core.features.Location)1 DefaultTrustManagerHostnameCallback (ch.cyberduck.core.ssl.DefaultTrustManagerHostnameCallback)1 KeychainX509KeyManager (ch.cyberduck.core.ssl.KeychainX509KeyManager)1 KeychainX509TrustManager (ch.cyberduck.core.ssl.KeychainX509TrustManager)1 UDTProxyConfigurator (ch.cyberduck.core.udt.UDTProxyConfigurator)1