Class SSLClientIOProcessor

All Implemented Interfaces:
AutoCloseable

public class SSLClientIOProcessor extends TcpClientIOProcessor
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.
  • Constructor Details

    • SSLClientIOProcessor

      public SSLClientIOProcessor(JposDevice dev, String addr, SSLSocketFactory factory) throws jpos.JposException
      Stores 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 entries
      addr - Communication object, e.g. 127.0.0.1:23456
      factory - 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.JposException
      Description 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 class TcpClientIOProcessor
      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