pt.digitalis.dif.controller.interfaces
Interface IAuthenticationPlugin


public interface IAuthenticationPlugin

Defines the Authentication integrations API

Author:
Galaio da Silva jgalaio@digitalis.pt
Created on:
Dec 14, 2010

Method Summary
 void doAfterLogin(IDIFContext context)
          Executes the necessary action after a login is executed by the DIF Dispatcher Authentication step
 void doAfterLogout(IDIFContext context)
          Executes the necessary action after a logout is executed by the DIF Dispatcher Authentication step
 void doBeforeLogin(IDIFContext context)
          Executes the necessary action before a login is executed by the DIF Dispatcher Authentication step
 void doBeforeLogout(IDIFContext context)
          Executes the necessary action before a logout is executed by the DIF Dispatcher Authentication step
 boolean validateUser(IDIFContext context, String user, String password)
          Executes the user validation
 

Method Detail

doAfterLogin

void doAfterLogin(IDIFContext context)
Executes the necessary action after a login is executed by the DIF Dispatcher Authentication step

Parameters:
context - the current executing context

doAfterLogout

void doAfterLogout(IDIFContext context)
Executes the necessary action after a logout is executed by the DIF Dispatcher Authentication step

Parameters:
context - the current executing context

doBeforeLogin

void doBeforeLogin(IDIFContext context)
Executes the necessary action before a login is executed by the DIF Dispatcher Authentication step

Parameters:
context - the current executing context

doBeforeLogout

void doBeforeLogout(IDIFContext context)
Executes the necessary action before a logout is executed by the DIF Dispatcher Authentication step

Parameters:
context - the current executing context

validateUser

boolean validateUser(IDIFContext context,
                     String user,
                     String password)
                     throws ControllerException
Executes the user validation

Parameters:
context - the current executing context
user - the user id
password - the user password
Returns:
true if the user is valid
Throws:
ControllerException - the exception that prevents the authentication to be performed


Copyright © 2014 Digitalis Informática Lda. All Rights Reserved.