The SlideToken interface identifies the current acting principal and its credentials, and maintains information about the state of the user transaction.
An object implementing this interface is required to use any of the methods provided by the helpers API. The default implementation of this interface is {@link SlideTokenImpl SlideTokenImpl}. In the context of a Java servlet, such an object should be instantiated like this:
Principal principal = request.getUserPrincipal(); CredentialsToken credentials; if (principal == null) { credentials = new CredentialsToken(""); } else { credentials = new CredentialsToken(principal); } SlideToken token = new SlideTokenImpl(credentials);
@author
Remy Maucherat
@version $Revision: 1.15.2.2 $