Package org.infinispan.commons.util
Class SslContextFactory
- java.lang.Object
-
- org.infinispan.commons.util.SslContextFactory
-
public class SslContextFactory extends Object
SslContextFactory.- Since:
- 5.3
- 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(ClassLoader classLoader)
SSLContext
getContext()
static SSLEngine
getEngine(SSLContext sslContext, boolean useClientMode, boolean needClientAuth)
KeyManagerFactory
getKeyManagerFactory()
TrustManagerFactory
getTrustManagerFactory()
SslContextFactory
keyAlias(String keyAlias)
SslContextFactory
keyStoreCertificatePassword(char[] keyStoreCertificatePassword)
SslContextFactory
keyStoreFileName(String keyStoreFileName)
SslContextFactory
keyStorePassword(char[] keyStorePassword)
SslContextFactory
keyStoreType(String keyStoreType)
SslContextFactory
sslProtocol(String sslProtocol)
SslContextFactory
trustStoreFileName(String trustStoreFileName)
SslContextFactory
trustStorePassword(char[] trustStorePassword)
SslContextFactory
trustStoreType(String trustStoreType)
SslContextFactory
useNativeIfAvailable(boolean useNativeIfAvailable)
-
-
-
Method Detail
-
keyStoreFileName
public SslContextFactory keyStoreFileName(String keyStoreFileName)
-
keyStorePassword
public SslContextFactory keyStorePassword(char[] keyStorePassword)
-
keyStoreCertificatePassword
public SslContextFactory keyStoreCertificatePassword(char[] keyStoreCertificatePassword)
-
keyStoreType
public SslContextFactory keyStoreType(String keyStoreType)
-
keyAlias
public SslContextFactory keyAlias(String keyAlias)
-
trustStoreFileName
public SslContextFactory trustStoreFileName(String trustStoreFileName)
-
trustStorePassword
public SslContextFactory trustStorePassword(char[] trustStorePassword)
-
trustStoreType
public SslContextFactory trustStoreType(String trustStoreType)
-
sslProtocol
public SslContextFactory sslProtocol(String sslProtocol)
-
useNativeIfAvailable
public SslContextFactory useNativeIfAvailable(boolean useNativeIfAvailable)
-
classLoader
public SslContextFactory classLoader(ClassLoader classLoader)
-
getContext
public SSLContext getContext()
-
getKeyManagerFactory
public KeyManagerFactory getKeyManagerFactory() throws IOException, GeneralSecurityException
- Throws:
IOException
GeneralSecurityException
-
getTrustManagerFactory
public TrustManagerFactory getTrustManagerFactory() throws IOException, GeneralSecurityException
- Throws:
IOException
GeneralSecurityException
-
getEngine
public static SSLEngine getEngine(SSLContext sslContext, boolean useClientMode, boolean needClientAuth)
-
-