public class JSSESocketFactory extends SocketFactory
| Constructor and Description |
|---|
JSSESocketFactory(SSLConfiguration config) |
| Modifier and Type | Method and Description |
|---|---|
Socket |
createSocket() |
Socket |
createSocket(InetAddress host,
int port) |
Socket |
createSocket(InetAddress address,
int port,
InetAddress localAddress,
int localPort) |
Socket |
createSocket(String host,
int port) |
Socket |
createSocket(String host,
int port,
InetAddress localAddress,
int localPort) |
protected Collection<? extends CRL> |
getCRLs(String crlf)
Load the collection of CRLs.
|
protected KeyManager[] |
getKeyManagers()
Gets the initialized key managers.
|
protected CertPathParameters |
getParameters(String algorithm,
String crlf,
KeyStore trustStore)
Return the initialization parameters for the TrustManager.
|
protected TrustManager[] |
getTrustManagers()
Gets the intialized trust managers.
|
protected KeyStore |
getTrustStore() |
void |
handshake(Socket socket) |
getDefaultpublic JSSESocketFactory(SSLConfiguration config)
public Socket createSocket() throws IOException
createSocket in class SocketFactoryIOExceptionSocketFactory.createSocket()public Socket createSocket(InetAddress host, int port) throws IOException
createSocket in class SocketFactoryIOExceptionorg.jboss.modcluster.mcmp.impl.SocketFactory#createSocket(java.net.InetAddress, int)public Socket createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) throws IOException
createSocket in class SocketFactoryIOExceptionSocketFactory.createSocket(java.net.InetAddress, int, java.net.InetAddress, int)public Socket createSocket(String host, int port, InetAddress localAddress, int localPort) throws IOException, UnknownHostException
createSocket in class SocketFactoryIOExceptionUnknownHostExceptionSocketFactory.createSocket(java.lang.String, int, java.net.InetAddress, int)public Socket createSocket(String host, int port) throws IOException, UnknownHostException
createSocket in class SocketFactoryIOExceptionUnknownHostExceptionSocketFactory.createSocket(java.lang.String, int)public void handshake(Socket socket) throws IOException
IOExceptionprotected KeyStore getTrustStore() throws IOException, KeyStoreException, NoSuchProviderException, NoSuchAlgorithmException, CertificateException
protected KeyManager[] getKeyManagers() throws GeneralSecurityException, IOException
GeneralSecurityExceptionIOExceptionprotected TrustManager[] getTrustManagers() throws GeneralSecurityException, IOException
GeneralSecurityExceptionIOExceptionprotected CertPathParameters getParameters(String algorithm, String crlf, KeyStore trustStore) throws GeneralSecurityException, IOException
PKIX is supported.algorithm - The algorithm to get parameters for.crlf - The path to the CRL file.trustStore - The configured TrustStore.GeneralSecurityExceptionIOExceptionprotected Collection<? extends CRL> getCRLs(String crlf) throws FileNotFoundException, GeneralSecurityException
Copyright © 2016 JBoss by Red Hat. All rights reserved.