TAILIEUCHUNG - database programming with jdbc and java phần 6

JDBC và Java 2 phiên bản trên mạng không thay đổi từ hình thức ban đầu của nó. Miễn là bạn không phải quan tâm đến những gì con mắt tò mò có thể nhìn thấy, tình trạng này sẽ chỉ làm việc tốt cho bạn. Mã hóa các thông tin liên lạc mạng của bạn thực sự liên quan rất ít thay đổi với cách thức bạn viết mã ứng dụng. | 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 .

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã 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.