问题
I want to implement a IPSEC
protocol in java.
I want to know how to create our own protocol.
And how to embedded this protocol with packet.
Please provide some code example so that it is easy to understand.
回答1:
IPSec is a internet layer protocol, not an application layer protocol. It works by encrypting/securing each network packet and as such runs at the network card level, usually by an OS provided driver which makes its use transparent to any applications.
It is not something you implement in your own code, instead if you wanted application level security you'd look at TLS/SSL or something more specific to your communications protocol.
回答2:
IPSec can not be implemented in JAVA. Java needs VM. We need code which will run directly on machine.
来源:https://stackoverflow.com/questions/3960802/implementing-ipsec-protocol