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
-
-
-
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
-
getSslProvider
public static String getSslProvider()
-
getEngine
public static SSLEngine getEngine(SSLContext sslContext, boolean useClientMode, boolean needClientAuth)
-
-