TAILIEUCHUNG - o'reilly database programming with JDBC and Java 2nd edition phần 6

Tham khảo tài liệu 'o'reilly database programming with jdbc and java 2nd edition phần 6', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | JDBC and Java 2nd edition across the network unchanged from its original form. As long as you are not concerned with what prying eyes might see this state of affairs will work just fine for you. Encrypting your network communications actually involves very few changes to the way you write application code. It is largely a matter of installing a custom socket factory. I will briefly outline the steps here required to install a custom socket factory for RMI. A more detailed discussion of these issues can be found in Java Network Programming by Elliotte Rusty Harold O Reilly Associates . Your first task is to decide what sort of socket will handle your network communications. In fact this discussion is not limited to helping you encrypt your RMI communications. It will also help you perform such things as compression of large amounts of binary data. JDK lets you support different sockets for different objects so the choice of which socket to use depends very much on the type of data coming in and out of an object. For encryption you will likely want to use a secure socket layer SSL socket. Unfortunately Java does not ship with any SSL socket implementations. You have to buy these from third-party vendors. Next you need to write an implementation of 3 to hand out the client sockets you wish to use. This pattern is an excellent example of the factory design pattern mentioned in the previous chapter. By relying on a class that constructs sockets rather than relying on direct instantiation of the sockets themselves you ll find that the sky is the limit for the type of sockets you can use for your RMI communications. Example shows a custom socket factory for creating a fictional ssLClientSocket. 3 If you are lucky the custom socket package you use will ship with RMI client and server socket factories so that you do not need to write them yourself. Example . A Custom Client Socket Factory for RMI import .

TỪ KHÓA LIÊN QUAN
TÀI LIỆU MỚI ĐĂNG
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.