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 initialized trust managers.
|
protected KeyStore |
getTrustStore()
Gets the SSL server's truststore.
|
getDefault
public JSSESocketFactory(SSLConfiguration config)
public Socket createSocket() throws IOException
createSocket
in class SocketFactory
IOException
public Socket createSocket(InetAddress host, int port) throws IOException
createSocket
in class SocketFactory
IOException
public Socket createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) throws IOException
createSocket
in class SocketFactory
IOException
public Socket createSocket(String host, int port, InetAddress localAddress, int localPort) throws IOException
createSocket
in class SocketFactory
IOException
public Socket createSocket(String host, int port) throws IOException
createSocket
in class SocketFactory
IOException
protected KeyStore getTrustStore() throws IOException, KeyStoreException, NoSuchProviderException, NoSuchAlgorithmException, CertificateException
protected KeyManager[] getKeyManagers() throws GeneralSecurityException, IOException
GeneralSecurityException
IOException
protected TrustManager[] getTrustManagers() throws GeneralSecurityException, IOException
GeneralSecurityException
IOException
protected 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.GeneralSecurityException
IOException
protected Collection<? extends CRL> getCRLs(String crlf) throws FileNotFoundException, GeneralSecurityException
Copyright © 2023 JBoss by Red Hat. All rights reserved.