com.acsinet_solutions.cetia4.controller.security
Interface SecurityContext

All Known Implementing Classes:
DefaultSecurityContext

public interface SecurityContext

A security context instance that is used by the framework for security- related management and access control.

Author:
Santiago Arriaga - santiago.arriaga@acsinet-solutions.com

Method Summary
 UserSession getLoggedSession()
          Get the service session
 boolean isLoggedIn()
          Check if the current user is logged in
 void setLoggedIn(UserSession session)
          Check the given user as logged in
 void setLoggedOut()
          Check the current user as logged out.
 

Method Detail

getLoggedSession

UserSession getLoggedSession()
Get the service session

Returns:
A not-null UserSession instance

setLoggedIn

void setLoggedIn(UserSession session)
Check the given user as logged in

Parameters:
role - A not-null not-empty String representing the authenticated role name

setLoggedOut

void setLoggedOut()
Check the current user as logged out. This method invalidates the user session.


isLoggedIn

boolean isLoggedIn()
Check if the current user is logged in