Package org.jgroups.util
Class SslContextFactory
- java.lang.Object
-
- org.jgroups.util.SslContextFactory
-
public class SslContextFactory extends java.lang.Object
SslContextFactory.- Since:
- 5.3
- Author:
- Tristan Tarrant
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SslContextFactory.Context
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DEFAULT_SSL_PROTOCOL
-
Constructor Summary
Constructors Constructor Description SslContextFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SslContextFactory.Context
build()
SslContextFactory
classLoader(java.lang.ClassLoader classLoader)
static java.security.Provider[]
discoverSecurityProviders(java.lang.ClassLoader classLoader)
static java.security.Provider
findProvider(java.lang.String providerName, java.lang.String serviceType, java.lang.String algorithm)
void
initializeContext(javax.net.ssl.SSLContext sslContext)
SslContextFactory
keyAlias(java.lang.String keyAlias)
SslContextFactory
keyStore(java.security.KeyStore keyStore)
SslContextFactory
keyStoreFileName(java.lang.String keyStoreFileName)
SslContextFactory
keyStorePassword(char[] keyStorePassword)
SslContextFactory
keyStorePassword(java.lang.String keyStorePassword)
SslContextFactory
keyStoreType(java.lang.String keyStoreType)
SslContextFactory
provider(java.lang.String provider)
SslContextFactory
sslProtocol(java.lang.String sslProtocol)
SslContextFactory
trustStore(java.security.KeyStore trustStore)
SslContextFactory
trustStoreFileName(java.lang.String trustStoreFileName)
SslContextFactory
trustStorePassword(char[] trustStorePassword)
SslContextFactory
trustStorePassword(java.lang.String trustStorePassword)
SslContextFactory
trustStoreType(java.lang.String trustStoreType)
SslContextFactory
watcher(FileWatcher watcher)
-
-
-
Field Detail
-
DEFAULT_SSL_PROTOCOL
public static final java.lang.String DEFAULT_SSL_PROTOCOL
- See Also:
- Constant Field Values
-
-
Method Detail
-
keyStore
public SslContextFactory keyStore(java.security.KeyStore keyStore)
-
keyStoreFileName
public SslContextFactory keyStoreFileName(java.lang.String keyStoreFileName)
-
keyStorePassword
public SslContextFactory keyStorePassword(java.lang.String keyStorePassword)
-
keyStorePassword
public SslContextFactory keyStorePassword(char[] keyStorePassword)
-
keyStoreType
public SslContextFactory keyStoreType(java.lang.String keyStoreType)
-
keyAlias
public SslContextFactory keyAlias(java.lang.String keyAlias)
-
trustStore
public SslContextFactory trustStore(java.security.KeyStore trustStore)
-
trustStoreFileName
public SslContextFactory trustStoreFileName(java.lang.String trustStoreFileName)
-
trustStorePassword
public SslContextFactory trustStorePassword(java.lang.String trustStorePassword)
-
trustStorePassword
public SslContextFactory trustStorePassword(char[] trustStorePassword)
-
trustStoreType
public SslContextFactory trustStoreType(java.lang.String trustStoreType)
-
sslProtocol
public SslContextFactory sslProtocol(java.lang.String sslProtocol)
-
provider
public SslContextFactory provider(java.lang.String provider)
-
classLoader
public SslContextFactory classLoader(java.lang.ClassLoader classLoader)
-
watcher
public SslContextFactory watcher(FileWatcher watcher)
-
build
public SslContextFactory.Context build()
-
initializeContext
public void initializeContext(javax.net.ssl.SSLContext sslContext)
-
findProvider
public static java.security.Provider findProvider(java.lang.String providerName, java.lang.String serviceType, java.lang.String algorithm)
-
discoverSecurityProviders
public static java.security.Provider[] discoverSecurityProviders(java.lang.ClassLoader classLoader)
-
-