As suggested by Ware, instances from the class javax.net.ssl.SSLSocket should be created instead of normal Sockets when transferring objects over communication channels. SSLSockets provide a layer of security protocols such as SSL or TLS.
According to Java API 1.4.2, the principal protections included in SSLSockets that are not provided by the Socket class are:
⢠Integrity Protection. SSL protects against modification of messages by an active wiretapper.
⢠Authentication. In most modes, SSL provides peer authentication. Servers are usually authenticated, and clients may be authenticated as requested by servers.
⢠Confidentiality (Privacy Protection). In most modes, SSL encrypts data being sent between client and server. This protects the confidentiality of data, so that passive wiretappers won't see sensitive data such as financial information or personal information of many kinds.
Noncompliant code example
TODO
Compliant solution
TODO
References
TODO