public class SslFilterFactory extends Object implements FilterFactory<SslFilter,ByteBuffer,ByteBuffer,FilteredHandler<?,?,?>>, SslEngineFactory<SslFilterFactory>
FilterFactory
that creates SslFilter
s.SslEngineFactory.Mode
Constructor and Description |
---|
SslFilterFactory()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
checkUninitialized()
Checks that this factory is uninitialized.
|
SslFilter |
newFilter(FilteredHandler<?,?,?> handler)
Creates a new
Filter . |
SSLEngine |
newSslEngine()
Creates a new
SSLEngine . |
SslFilterFactory |
setKeyManagers(KeyManager... keyManagers)
Sets the
KeyManager s. |
SslFilterFactory |
setMode(SslEngineFactory.Mode mode)
Sets the
SSLEngine operating SslEngineFactory.Mode . |
SslFilterFactory |
setRequireClientAuth(boolean requireClientAuth)
Sets whether the server should require client authorization.
|
SslFilterFactory |
setSecureRandom(SecureRandom random)
Sets the
SecureRandom source. |
SslFilterFactory |
setTrustManagers(TrustManager... trustManagers)
Sets the
TrustManager s. |
public SslFilterFactory setTrustManagers(TrustManager... trustManagers)
SslEngineFactory
TrustManager
s.setTrustManagers
in interface SslEngineFactory<SslFilterFactory>
public SslFilterFactory setKeyManagers(KeyManager... keyManagers)
SslEngineFactory
KeyManager
s.setKeyManagers
in interface SslEngineFactory<SslFilterFactory>
public SslFilterFactory setSecureRandom(SecureRandom random)
SslEngineFactory
SecureRandom
source.setSecureRandom
in interface SslEngineFactory<SslFilterFactory>
public SslFilterFactory setRequireClientAuth(boolean requireClientAuth)
SslEngineFactory
setRequireClientAuth
in interface SslEngineFactory<SslFilterFactory>
public SslFilterFactory setMode(SslEngineFactory.Mode mode)
SslEngineFactory
SSLEngine
operating SslEngineFactory.Mode
.setMode
in interface SslEngineFactory<SslFilterFactory>
public SSLEngine newSslEngine()
SslEngineFactory
SSLEngine
.newSslEngine
in interface SslEngineFactory<SslFilterFactory>
public SslFilter newFilter(FilteredHandler<?,?,?> handler)
FilterFactory
Filter
.newFilter
in interface FilterFactory<SslFilter,ByteBuffer,ByteBuffer,FilteredHandler<?,?,?>>
protected void checkUninitialized()