- All Implemented Interfaces:
- CommandAuthenticator
public class SecurityTokenCommandAuthenticator
extends Object
implements CommandAuthenticator
This is the authenticator object that will make sure we are getting a message from a valid server.
It will check to make sure the token the sender sent us matches our own token. The server will know
what token it assigned us, so it should be able to give us our own token back. If the token doesn't match,
we must be getting a message from some server that isn't the one that we are registered with, thus,
then this happens, the command is aborted.
- Author:
- John Mazzitelli