|
Eclipse Platform Kepler (4.3) |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ILoginContext
The ILoginContext is the central entry point for the authentication support. Use it to perform login, logout, and retrieve information associated with the security subject.
This interface is not intended to be implemented by clients.
Method Summary | |
---|---|
javax.security.auth.login.LoginContext |
getLoginContext()
The method exposes underlying JAAS LoginContext. |
javax.security.auth.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. |
Method Detail |
---|
void login() throws javax.security.auth.login.LoginException
javax.security.auth.login.LoginException
LoginContext.login()
void logout() throws javax.security.auth.login.LoginException
javax.security.auth.login.LoginException
LoginContext.logout()
javax.security.auth.Subject getSubject() throws javax.security.auth.login.LoginException
javax.security.auth.login.LoginException
LoginContext.getSubject()
void registerListener(ILoginContextListener listener)
listener
- the listener to be registeredILoginContextListener
void unregisterListener(ILoginContextListener listener)
listener
- the listener to be unregisteredILoginContextListener
javax.security.auth.login.LoginContext getLoginContext() throws javax.security.auth.login.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.
javax.security.auth.login.LoginException
- if exception was encountered while creating LoginContext
|
Eclipse Platform Kepler (4.3) |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2012. All rights reserved.