public class ConfigurableTLSSocketFactory
extends javax.net.SocketFactory
Modifier and Type | Class and Description |
---|---|
static class |
ConfigurableTLSSocketFactory.ConnectionProfile
DICOM connection profiles
|
Modifier and Type | Method and Description |
---|---|
java.net.Socket |
createSocket() |
java.net.Socket |
createSocket(java.net.InetAddress address,
int i) |
java.net.Socket |
createSocket(java.net.InetAddress address,
int port,
java.net.InetAddress localAddress,
int localPort) |
java.net.Socket |
createSocket(java.lang.String host,
int port) |
java.net.Socket |
createSocket(java.lang.String host,
int port,
java.net.InetAddress localAddress,
int localPort) |
static javax.net.SocketFactory |
getFactory(java.io.File keyStoreFile,
java.lang.String keyStorePassword,
java.io.File trustStoreFile,
java.lang.String trustStorePassword,
ConfigurableTLSSocketFactory.ConnectionProfile connectionprofile)
factory method for creating a socket factory with specified keystore,truststore and connection profile.
|
static javax.net.SocketFactory |
getFactory(java.io.File keyStoreFile,
java.lang.String keyStorePassword,
java.io.File trustStoreFile,
java.lang.String trustStorePassword,
java.lang.String[] tlsProtocols,
java.lang.String[] cipherSuites)
factory method for creating a socket factory with specified keystore,truststore,TLS protocols and cipher suites.
|
public static javax.net.SocketFactory getFactory(java.io.File keyStoreFile, java.lang.String keyStorePassword, java.io.File trustStoreFile, java.lang.String trustStorePassword, ConfigurableTLSSocketFactory.ConnectionProfile connectionprofile) throws java.lang.Exception
getFactory(File, String, File, String, String[], String[])
keyStoreFile
- keystore file in PKCS12 formatkeyStorePassword
- keystore passwordtrustStoreFile
- truststore file in PKCS12 formattrustStorePassword
- truststore passwordconnectionprofile
- connection profile enum valuejava.lang.Exception
- -public static javax.net.SocketFactory getFactory(java.io.File keyStoreFile, java.lang.String keyStorePassword, java.io.File trustStoreFile, java.lang.String trustStorePassword, java.lang.String[] tlsProtocols, java.lang.String[] cipherSuites) throws java.lang.Exception
keyStoreFile
- keystore file in PKCS12 formatkeyStorePassword
- keystore passwordtrustStoreFile
- truststore file in PKCS12 formattrustStorePassword
- truststore passwordtlsProtocols
- array of TLS protocolscipherSuites
- array of cipher suitesException-
java.lang.Exception
public java.net.Socket createSocket() throws java.io.IOException
createSocket
in class javax.net.SocketFactory
java.io.IOException
public java.net.Socket createSocket(java.lang.String host, int port) throws java.io.IOException
createSocket
in class javax.net.SocketFactory
java.io.IOException
public java.net.Socket createSocket(java.lang.String host, int port, java.net.InetAddress localAddress, int localPort) throws java.io.IOException
createSocket
in class javax.net.SocketFactory
java.io.IOException
public java.net.Socket createSocket(java.net.InetAddress address, int i) throws java.io.IOException
createSocket
in class javax.net.SocketFactory
java.io.IOException
public java.net.Socket createSocket(java.net.InetAddress address, int port, java.net.InetAddress localAddress, int localPort) throws java.io.IOException
createSocket
in class javax.net.SocketFactory
java.io.IOException