com.ivata.mask.web.struts
Interface MaskAuthenticator

All Known Implementing Classes:
DefaultMaskAuthenticator

public interface MaskAuthenticator

Mask authenticator allows you to query the state of the current web session and return control to an alternate forward, if the current user is unauthorized.

Since:
ivata masks 0.3 (2004-11-12)
Version:
$Revision: 1.3 $
Author:
Colin MacLeod colin.macleod@ivata.com

Method Summary
 java.lang.String authenticate(javax.servlet.http.HttpSession session, boolean login)
           This is the 'do it' method of this interface :-).
 

Method Detail

authenticate

public java.lang.String authenticate(javax.servlet.http.HttpSession session,
                                     boolean login)

This is the 'do it' method of this interface :-). Identify whether or not special steps should be taken for this user, and return the Struts action forward if they should.

Parameters:
session - current web session to authenicate against.
login - true if the user is performing a login action, otherwise false.
Returns:
name of a Struts action forward to pass control to, or null if the current user is valid and should be allowed to continue.


Copyright © 2001-2005 ivata limited. All Rights Reserved.