public interface ILoginContext
This interface is not intended to be implemented by clients.
Modifier and Type | Method and Description |
---|---|
LoginContext |
getLoginContext()
The method exposes underlying JAAS LoginContext.
|
Subject |
getSubject()
Retrieves the current Subject.
|
void |
login()
Call this method to perform a login.
|
void |
logout()
Call this method to perform a logout.
|
void |
registerListener(ILoginContextListener listener)
Adds listener to be notified on security-related events.
|
void |
unregisterListener(ILoginContextListener listener)
Removes listener previously registered to receive notifications
on security-related events.
|
void login() throws LoginException
LoginException
LoginContext.login()
void logout() throws LoginException
LoginException
LoginContext.logout()
Subject getSubject() throws LoginException
LoginException
LoginContext.getSubject()
void registerListener(ILoginContextListener listener)
listener
- the listener to be registeredILoginContextListener
void unregisterListener(ILoginContextListener listener)
listener
- the listener to be unregisteredILoginContextListener
LoginContext getLoginContext() throws LoginException
Using the LoginContext directly will bypass some of the processing offered by this interface and should be used only when other methods are not sufficient.
LoginException
- if exception was encountered while creating LoginContext
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.