Class AbstractLoginModule
java.lang.Object
org.eclipse.jetty.security.jaas.spi.AbstractLoginModule
- All Implemented Interfaces:
 LoginModule
- Direct Known Subclasses:
 AbstractDatabaseLoginModule, LdapLoginModule, PropertyFileLoginModule
Abstract base class for all 
LoginModules. Subclasses should
implement getUser(String) method, and subclass AbstractLoginModule.JAASUser to implement
AbstractLoginModule.JAASUser.doFetchRoles() method.- 
Nested Class Summary
Nested Classes - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionbooleanabort()booleancommit()Callback[]abstract AbstractLoginModule.JAASUservoidinitialize(Subject subject, CallbackHandler callbackHandler, Map<String, ?> sharedState, Map<String, ?> options) booleanbooleanbooleanbooleanlogin()booleanlogout()voidsetAuthenticated(boolean authState) voidvoidsetCommitted(boolean commitState) voidvoid 
- 
Constructor Details
- 
AbstractLoginModule
public AbstractLoginModule() 
 - 
 - 
Method Details
- 
getUser
- Throws:
 Exception
 - 
getSubject
 - 
setSubject
 - 
getCurrentUser
 - 
setCurrentUser
 - 
getCallbackHandler
 - 
setCallbackHandler
 - 
isAuthenticated
public boolean isAuthenticated() - 
isCommitted
public boolean isCommitted() - 
setAuthenticated
public void setAuthenticated(boolean authState)  - 
setCommitted
public void setCommitted(boolean commitState)  - 
abort
- Specified by:
 abortin interfaceLoginModule- Throws:
 LoginException
 - 
commit
- Specified by:
 commitin interfaceLoginModule- Returns:
 - true if committed, false if not (likely not authenticated)
 - Throws:
 LoginException- if unable to commit- See Also:
 
 - 
configureCallbacks
 - 
isIgnored
public boolean isIgnored() - 
login
- Specified by:
 loginin interfaceLoginModule- Returns:
 - true if is authenticated, false otherwise
 - Throws:
 LoginException- if unable to login- See Also:
 
 - 
logout
- Specified by:
 logoutin interfaceLoginModule- Returns:
 - true always
 - Throws:
 LoginException- if unable to logout- See Also:
 
 - 
initialize
public void initialize(Subject subject, CallbackHandler callbackHandler, Map<String, ?> sharedState, Map<String, ?> options) - Specified by:
 initializein interfaceLoginModule- Parameters:
 subject- the subjectcallbackHandler- the callback handlersharedState- the shared state mapoptions- the option map- See Also:
 
 
 -