at.spardat.xma.security
Interface LoginModuleWithContextChange

All Superinterfaces:
javax.security.auth.spi.LoginModule

public interface LoginModuleWithContextChange
extends javax.security.auth.spi.LoginModule

This is the extended Interface for LoginModules which supports any changes in the XMAContext after the first login. Such changes can be user switches, mandant switches or similar.


Method Summary
 void addContextChangeListener(ContextChangeListener listener)
          Adds a ContextChangeListener to this LoginModule.
 boolean istContextChangeAllowed()
          Get if the context change is allowed.
 void removeContextChangeListener(ContextChangeListener listener)
          Remove a ContextChangeListener form the listners of the LoginModule.
 void setContextChangeAllowed(boolean allowed)
          Decide if any change in the XMAContext after the inital login is allowed.
 
Methods inherited from interface javax.security.auth.spi.LoginModule
abort, commit, initialize, login, logout
 

Method Detail

istContextChangeAllowed

public boolean istContextChangeAllowed()
Get if the context change is allowed.

Returns:
true if any change in the XMAContext is allowed.

setContextChangeAllowed

public void setContextChangeAllowed(boolean allowed)
Decide if any change in the XMAContext after the inital login is allowed.

Parameters:
allowed - true to allow, false to disallow

addContextChangeListener

public void addContextChangeListener(ContextChangeListener listener)
Adds a ContextChangeListener to this LoginModule. All listeners are notified of all changed in the XMAContext after the inital login.

Parameters:
listener - the new listener to register

removeContextChangeListener

public void removeContextChangeListener(ContextChangeListener listener)
Remove a ContextChangeListener form the listners of the LoginModule. This listener will not be notified of changes in the XMAContext any more.

Parameters:
listener - the listener to remove