GigaSpaces XAP 10.0.1 API

com.gigaspaces.lrmi.nio.filters
Class SSLFilterFactory

java.lang.Object
  extended by com.gigaspaces.lrmi.nio.filters.SSLFilterFactory
All Implemented Interfaces:
com.gigaspaces.lrmi.nio.filters.IOFilterFactory

public class SSLFilterFactory
extends Object
implements com.gigaspaces.lrmi.nio.filters.IOFilterFactory

A factory class used to load SSL network filter

Since:
6.6
Author:
barak

Constructor Summary
SSLFilterFactory()
           
SSLFilterFactory(String keystore, String password)
           
 
Method Summary
 IOFilter createClientFilter(InetSocketAddress remoteAddress)
           
 IOFilter createServerFilter(InetSocketAddress remoteAddress)
           
protected  SSLContext createSSLContext(boolean clientMode, String keystore, String password)
           
protected  KeyStore loadKeyStore(String keystore, char[] passphrase)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SSLFilterFactory

public SSLFilterFactory()

SSLFilterFactory

public SSLFilterFactory(String keystore,
                        String password)
Method Detail

createClientFilter

public IOFilter createClientFilter(InetSocketAddress remoteAddress)
                            throws Exception
Specified by:
createClientFilter in interface com.gigaspaces.lrmi.nio.filters.IOFilterFactory
Throws:
Exception

createServerFilter

public IOFilter createServerFilter(InetSocketAddress remoteAddress)
                            throws Exception
Specified by:
createServerFilter in interface com.gigaspaces.lrmi.nio.filters.IOFilterFactory
Throws:
Exception

createSSLContext

protected SSLContext createSSLContext(boolean clientMode,
                                      String keystore,
                                      String password)
                               throws Exception
Throws:
Exception

loadKeyStore

protected KeyStore loadKeyStore(String keystore,
                                char[] passphrase)
                         throws KeyStoreException,
                                IOException,
                                NoSuchAlgorithmException,
                                CertificateException
Throws:
KeyStoreException
IOException
NoSuchAlgorithmException
CertificateException

GigaSpaces XAP 10.0.1 API

Copyright © GigaSpaces.