javax.security.auth.spi
public interface LoginModule
This interface is used by service providers that implement login services, and is used internally by the JAAS system. It is not useful to application programmers, who should use the {@link javax.security.auth.login.LoginContext} instead.
Method Summary | |
---|---|
boolean | abort()
Abort the current login attempt. |
boolean | commit()
Commit the current login attempt. |
void | initialize(Subject subject, CallbackHandler handler, Map<String,?> sharedState, Map<String,?> options)
Initializes this login module. |
boolean | login()
Authenticates a subject to the system. |
boolean | logout()
Logs a subject out. |
Returns: True if the abort succeeded, or false if this module should be ignored.
Throws: LoginException If the abort fails.
Returns: True if the commit succeeded, or false if this module should be ignored.
Throws: LoginException If the commit fails.
Parameters: subject The subject being authenticated. handler The callback handler for user input. sharedState A mapping that is shared between all login modules. options A mapping of options given to this module.
Returns: True if the subject was authenticated, or false if this module should be ignored.
Throws: LoginException If this method fails.
Returns: True if the logout succeeds, or false if this module should be ignored.
Throws: LoginException If this method fails.