org.apache.ftpserver.ssl
Interface SslConfiguration

All Known Implementing Classes:
DefaultSslConfiguration

public interface SslConfiguration

SSL configuration

Author:
Apache MINA Project

Method Summary
 ClientAuth getClientAuth()
          Return the required client authentication setting
 String[] getEnabledCipherSuites()
          Returns the cipher suites that should be enabled for this connection.
 SSLContext getSSLContext()
          Return the SSL context for this configuration
 SSLContext getSSLContext(String protocol)
          Return the SSL context for this configuration given the specified protocol
 

Method Detail

getSSLContext

SSLContext getSSLContext()
                         throws GeneralSecurityException
Return the SSL context for this configuration

Returns:
The SSLContext
Throws:
GeneralSecurityException

getSSLContext

SSLContext getSSLContext(String protocol)
                         throws GeneralSecurityException
Return the SSL context for this configuration given the specified protocol

Parameters:
protocol - The protocol, SSL or TLS must be supported
Returns:
The SSLContext
Throws:
GeneralSecurityException

getEnabledCipherSuites

String[] getEnabledCipherSuites()
Returns the cipher suites that should be enabled for this connection. Must return null if the default (as decided by the JVM) cipher suites should be used.

Returns:
An array of cipher suites, or null.

getClientAuth

ClientAuth getClientAuth()
Return the required client authentication setting

Returns:
ClientAuth.NEED if client authentication is required, ClientAuth.WANT is client authentication is wanted or ClientAuth.NONE if no client authentication is the be performed


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.