Example usage for org.apache.commons.net.ftp FTPSClient getEnabledProtocols

List of usage examples for org.apache.commons.net.ftp FTPSClient getEnabledProtocols

Introduction

In this page you can find the example usage for org.apache.commons.net.ftp FTPSClient getEnabledProtocols.

Prototype

public String[] getEnabledProtocols() 

Source Link

Document

Returns the names of the protocol versions which are currently enabled for use on this connection.

Usage

From source file:com.adaptris.core.ftp.ClientSettingsTest.java

@Test
public void testPreConnectSettings_FTPS() {
    FTPSClient client = new FTPSClient();
    preConnectSettings(client, FTPS.values(), createFtpsSettings());
    assertTrue(client.isEndpointCheckingEnabled());
    // Not Connected yet, so these will not be the same.
    assertFalse(client.getNeedClientAuth());
    assertFalse(client.getUseClientMode());
    assertFalse(client.getWantClientAuth());
    assertNull(client.getEnabledCipherSuites());
    assertNull(client.getEnabledProtocols());
}