Guo Jia
Email: [Email protected]
Blog: http://blog.csdn.net/allenwells
Github:https://github.com/allenwell
The Java SASL API has two interfaces:
- Saslclient: Client mechanism.
- Saslserver: Server-side mechanism.
The application interacts with the SASL mechanism using the challenge-response protocol and uses a byte array to represent the challenge and response. The server-side mechanism will continually issue the challenge and process the response until it is satisfied, while the client continually evaluates the challenge and responds until the server is satisfied. Each iteration is driven by an application that uses the mechanism, that is, the application extracts a challenge or response from the Protocol group and provides it to the mechanism, and then sends the response or challenge to the peer Agreement group that the mechanism returns, and send it to the peers. In many of the protocols used, KSL, the server advertises (statically or dynamically) the list of SASL mechanisms it supports, and clients can choose one of them according to their own security needs.
"Java Security Technology Exploration Path series: Java Extensible Security Architecture" 21: SASL (ii): SASL class and interface. MD