Package org.jgroups.util
Class SslContextFactory
- java.lang.Object
-
- org.jgroups.util.SslContextFactory
-
public class SslContextFactory extends java.lang.Object
SslContextFactory.- Author:
- Tristan Tarrant
-
-
Constructor Summary
Constructors Constructor Description SslContextFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SslContextFactory
classLoader(java.lang.ClassLoader classLoader)
javax.net.ssl.SSLContext
getContext()
static javax.net.ssl.SSLEngine
getEngine(javax.net.ssl.SSLContext sslContext, boolean useClientMode, boolean needClientAuth)
javax.net.ssl.KeyManagerFactory
getKeyManagerFactory()
static java.lang.String
getSslProvider()
javax.net.ssl.TrustManagerFactory
getTrustManagerFactory()
SslContextFactory
keyAlias(java.lang.String keyAlias)
SslContextFactory
keyStore(java.security.KeyStore keyStore)
SslContextFactory
keyStoreCertificatePassword(char[] keyStoreCertificatePassword)
SslContextFactory
keyStoreCertificatePassword(java.lang.String keyStoreCertificatePassword)
SslContextFactory
keyStoreFileName(java.lang.String keyStoreFileName)
SslContextFactory
keyStorePassword(char[] keyStorePassword)
SslContextFactory
keyStorePassword(java.lang.String keyStorePassword)
SslContextFactory
keyStoreType(java.lang.String keyStoreType)
SslContextFactory
sslProtocol(java.lang.String sslProtocol)
SslContextFactory
sslProvider(java.lang.String sslProvider)
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)
-
-
-
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)
-
keyStoreCertificatePassword
public SslContextFactory keyStoreCertificatePassword(char[] keyStoreCertificatePassword)
-
keyStoreCertificatePassword
public SslContextFactory keyStoreCertificatePassword(java.lang.String keyStoreCertificatePassword)
-
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(char[] trustStorePassword)
-
trustStorePassword
public SslContextFactory trustStorePassword(java.lang.String trustStorePassword)
-
trustStoreType
public SslContextFactory trustStoreType(java.lang.String trustStoreType)
-
sslProtocol
public SslContextFactory sslProtocol(java.lang.String sslProtocol)
-
sslProvider
public SslContextFactory sslProvider(java.lang.String sslProvider)
-
classLoader
public SslContextFactory classLoader(java.lang.ClassLoader classLoader)
-
getContext
public javax.net.ssl.SSLContext getContext()
-
getKeyManagerFactory
public javax.net.ssl.KeyManagerFactory getKeyManagerFactory() throws java.io.IOException, java.security.GeneralSecurityException
- Throws:
java.io.IOException
java.security.GeneralSecurityException
-
getTrustManagerFactory
public javax.net.ssl.TrustManagerFactory getTrustManagerFactory() throws java.io.IOException, java.security.GeneralSecurityException
- Throws:
java.io.IOException
java.security.GeneralSecurityException
-
getSslProvider
public static java.lang.String getSslProvider()
-
getEngine
public static javax.net.ssl.SSLEngine getEngine(javax.net.ssl.SSLContext sslContext, boolean useClientMode, boolean needClientAuth)
-
-