Interface ILoginContextListener
public interface ILoginContextListener
This is a common interface that tags a class that can be registered as a
listener for security events.
This interface is not intended to be implemented or extended by clients.
- See Also:
- Restriction:
- This interface is not intended to be implemented by clients.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onLoginFinish
(Subject subject, LoginException loginException) This method is called after login sequence is finished.void
onLoginStart
(Subject subject) This method is called before login starts.void
onLogoutFinish
(Subject subject, LoginException logoutException) This method is called after logout sequence finishes.void
onLogoutStart
(Subject subject) This method is called before logout starts.
-
Method Details
-
onLoginStart
This method is called before login starts.- Parameters:
subject
- the subject being authenticated, might benull
if there is no subject associated the context at this time
-
onLoginFinish
This method is called after login sequence is finished. If login exception is not null, the login failed.- Parameters:
subject
- the subject being authenticated, might benull
if there is no subject associated the context at this timeloginException
-null
if login succeeded, otherwise contains exception caused login to fail
-
onLogoutStart
This method is called before logout starts.- Parameters:
subject
- the authenticated subject, might benull
if there is no subject associated the context at this time
-
onLogoutFinish
This method is called after logout sequence finishes. If logout exception is not null, the logout failed.- Parameters:
subject
- the authenticated subject, might benull
if there is no subject associated the context at this timelogoutException
-null
if logout succeeded, otherwise contains exception caused logout to fail
-