Package de.gmxhome.conrad.jpos.jpos_base
Class SSLClientIOProcessor
java.lang.Object
de.gmxhome.conrad.jpos.jpos_base.UniqueIOProcessor
de.gmxhome.conrad.jpos.jpos_base.TcpClientIOProcessor
de.gmxhome.conrad.jpos.jpos_base.SSLClientIOProcessor
- All Implemented Interfaces:
AutoCloseable
Class to process SSL/TLS client communication. Includes functionality for automatic
data logging. Implementation is based on JavaPOS-SPF class TcpClientIOProcessor
and uses the Javax classes SSLSocket and SSLSocketFactory.
-
Field Summary
Fields inherited from class de.gmxhome.conrad.jpos.jpos_base.UniqueIOProcessor
Dev, InitialPort, IOProcessorError, LoggingData, LoggingPrefix, LoggingType, LoggingTypeEscapeString, LoggingTypeHexString, LoggingTypeNoLogging, Port, Source, Target, Timeout
-
Constructor Summary
ConstructorsConstructorDescriptionSSLClientIOProcessor(JposDevice dev, String addr, SSLSocketFactory factory)
Stores JposDevice and tcp address of derived IO processors. -
Method Summary
Modifier and TypeMethodDescriptionvoid
open(boolean noErrorLog)
Opens processor for communication to specific source / target.Methods inherited from class de.gmxhome.conrad.jpos.jpos_base.TcpClientIOProcessor
available, close, flush, read, setParam, setParam, setTarget, write
Methods inherited from class de.gmxhome.conrad.jpos.jpos_base.UniqueIOProcessor
getSource, getTarget, location, logerror, logerror, logerror, setLoggingType, setTimeout, toLogString
-
Constructor Details
-
SSLClientIOProcessor
public SSLClientIOProcessor(JposDevice dev, String addr, SSLSocketFactory factory) throws jpos.JposExceptionStores JposDevice and tcp address of derived IO processors. The device will be used for logging while the tcp address specifies the communication object. An SSLSocketFactory can be provided to be used instead of the default factory to allow use of specific authorization options.- Parameters:
dev
- Device that uses the proceessor. Processor uses loging of device to produce logging entriesaddr
- Communication object, e.g. 127.0.0.1:23456factory
- SSLSocketFactory to be used to create the SSL socket. If null, the default factory will be used.- Throws:
jpos.JposException
- If addr if not a valid tcp address in format IP:port.
-
-
Method Details
-
open
public void open(boolean noErrorLog) throws jpos.JposExceptionDescription copied from class:UniqueIOProcessor
Opens processor for communication to specific source / target. Communication parameters must be set previously by specific setup method(s).- Overrides:
open
in classTcpClientIOProcessor
- Parameters:
noErrorLog
- if set, no logging occurs in error case to avoid a flood of error messages.- Throws:
jpos.JposException
- if an IO error occurs
-