_server.getSecretKey()
Availability:
SmartFoxServer PRO 1.3.0
Usage:
_server.getSecretKey(chann)
Description:
Returns the "secret key" that was sent to a certain user identified
by its "channel".
This method is used when implementing a CHAP (Challenge-handshake authentication
protocol) login system.
The "channel" is a java.nio.Channels.SocketChannel object.
More info about this technique can be found in the "Secure
Login" tutorial.
Properties:
chann | a valid user channel |
Returns:
The "secret key" previously sent to the user represented by the passed "chann" argument
Example:
For a full example check the "Secure Login" tutorial.See also: