org.apache.ftpserver.ssl
Interface SslConfiguration

All Known Implementing Classes:
DefaultSslConfiguration

public interface SslConfiguration

SSL configuration

Version:
$Rev: 686637 $, $Date: 2008-08-17 21:52:42 +0200 (Sun, 17 Aug 2008) $
Author:
The Apache MINA Project (dev@mina.apache.org)

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

Method Detail

getSSLContext

javax.net.ssl.SSLContext getSSLContext()
                                       throws java.security.GeneralSecurityException
Return the SSL context for this configuration

Returns:
The SSLContext
Throws:
java.security.GeneralSecurityException

getSSLContext

javax.net.ssl.SSLContext getSSLContext(java.lang.String protocol)
                                       throws java.security.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:
java.security.GeneralSecurityException

getEnabledCipherSuites

java.lang.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.