Class SunJSSESocketFactory
java.lang.Object
org.jpos.util.SimpleLogSource
org.jpos.iso.GenericSSLSocketFactory
org.jpos.iso.SunJSSESocketFactory
- All Implemented Interfaces:
Configurable, ISOClientSocketFactory, ISOServerSocketFactory, LogSource
Deprecated.
use GenericSSLSocketFactory()
SunJSSESocketFactory is used by BaseChannel and ISOServer
in order to provide hooks for SSL implementations.- Since:
- 1.3.3
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Default constructor; no instance state to initialise. -
Method Summary
Methods inherited from class GenericSSLSocketFactory
createServerSocket, createServerSocketFactory, createSocket, createSocketFactory, getClientAuthNeeded, getConfiguration, getEnabledCipherSuites, getKeyPassword, getKeyStore, getPassword, getServerAuthNeeded, getServerName, setClientAuthNeeded, setConfiguration, setEnabledCipherSuites, setKeyPassword, setKeyStore, setPassword, setServerAuthNeeded, setServerNameModifier and TypeMethodDescriptioncreateServerSocket(int port) Create a server socket on the specified port (port 0 indicates an anonymous port).protected SSLServerSocketFactoryCreate a socket factorycreateSocket(String host, int port) Create a client socket connected to the specified host and port.protected SSLSocketFactoryCreate a socket factorybooleanReturns whether accepted sockets require TLS client authentication.Returns the configuration applied viaGenericSSLSocketFactory.setConfiguration(Configuration).String[]Returns the explicit list of TLS cipher suites enabled on created sockets.protected StringHook returning the private-key entry password.Returns the path of the configured JKS key store.protected StringHook returning the key store password.booleanReturns whether outbound sockets validate the server certificate chain.Returns the configured peer certificate Common Name.voidsetClientAuthNeeded(boolean clientAuthNeeded) Toggles whether accepted sockets require TLS client authentication.voidConfigures this object with the suppliedConfiguration.voidsetEnabledCipherSuites(String[] enabledCipherSuites) Sets the explicit list of TLS cipher suites enabled on created sockets.voidsetKeyPassword(String keyPassword) Sets the password protecting the private key entry.voidsetKeyStore(String keyStore) Sets the path of the JKS key store used for the TLS handshake.voidsetPassword(String password) Sets the key store password.voidsetServerAuthNeeded(boolean serverAuthNeeded) Toggles whether outbound sockets validate the server certificate chain.voidsetServerName(String serverName) Sets the Common Name (CN) used to verify the peer certificate.Methods inherited from class SimpleLogSource
error, error, getLogger, getRealm, info, info, setLogger, setRealm, warning, warningModifier and TypeMethodDescriptionvoidLogs an error message.voidLogs an error message with an attached object.Returns the logger.getRealm()Returns the logging realm.voidLogs an informational message.voidLogs an informational message with an attached object.voidSets the logger and realm for this log source.voidSets the logging realm.voidLogs a warning message.voidLogs a warning message with an attached object.
-
Constructor Details
-
SunJSSESocketFactory
-