issrg.security
Interface SessionOriented

All Superinterfaces:
javax.security.auth.spi.LoginModule
All Known Implementing Classes:
DefaultSecurity, MultiFileTypeSecurity, PKCS12Security

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

This interface defines the standard way of logging users in. It extends from the standard JAAS LoginModule interface and should be implemented by Security classes that require the user to log in before using a security token. Note that such Security classes can then be used as a standard JAAS authentication module.


Method Summary
 boolean isLoggedIn()
          This method checks if any user is logged in at the moment - that is if a session is opened.
 
Methods inherited from interface javax.security.auth.spi.LoginModule
abort, commit, initialize, login, logout
 

Method Detail

isLoggedIn

boolean isLoggedIn()
This method checks if any user is logged in at the moment - that is if a session is opened. Note that the security objects are allowed to expire sessions at their own responsibility, in which case even after logging in the session may appear to be closed. However, the security objects must ensure the timeout is of reasonable length to provide efficient operation.

Returns:
true, if a session is open; it should return true, if the session was open prior to a failed logout, to notify that the session is still open