e-Biz Impact provides secure or standard (plaintext) socket communication using support classes that are included in the com.sybase.impact.tcp package. Interaction with secure or standard sockets is performed using the TcpProxy and TcpService classes.
Figure 2-1: Secure and standard socket interaction
TcpProxy is a helper class that supports a secure or standard TCP socket connection. Once connected, an application can send and receive data using TcpProxy send() and receive() methods.
Internally, TcpService starts a listener that accepts secure or standard TCP connections from a client and routes all data to a secure or standard target connection. Externally, TcpService provides redirection that is intended to redirect secure connection data to a plaintext connection or vice-versa.
Typically, you have an application redirect secure connection data to a plaintext connection where a handler, such as an ODL socket AIM, uses the plaintext data. Secure-to-plaintext and plaintext-to-secure functionality allows ODL AIMs to operate either as servers or as clients in protocol implementations.
Securing socket connections with TcpProxy or TcpService requires that you use keystores and truststores. See the references at the end of this chapter for additional information on creation and maintenance of key stores and trust stores.
Standard JavaDocs are provided for TcpProxy and TcpService.
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |