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.
|
getDefaultpublic JSSESocketFactory(SSLConfiguration config)
public Socket createSocket() throws IOException
createSocket in class SocketFactoryIOExceptionpublic Socket createSocket(InetAddress host, int port) throws IOException
createSocket in class SocketFactoryIOExceptionpublic Socket createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) throws IOException
createSocket in class SocketFactoryIOExceptionpublic Socket createSocket(String host, int port, InetAddress localAddress, int localPort) throws IOException
createSocket in class SocketFactoryIOExceptionpublic Socket createSocket(String host, int port) throws IOException
createSocket in class SocketFactoryIOExceptionprotected 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 © 2023 JBoss by Red Hat. All rights reserved.