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

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

Introduction

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

Prototype

public boolean getNeedClientAuth() 

Source Link

Document

Returns true if the socket will require client authentication.

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());
}