public abstract class AbstractLoginModule extends Object implements LoginModule
Modifier and Type | Class and Description |
---|---|
class |
AbstractLoginModule.JAASUserInfo |
Constructor and Description |
---|
AbstractLoginModule() |
Modifier and Type | Method and Description |
---|---|
boolean |
abort() |
boolean |
commit() |
Callback[] |
configureCallbacks() |
CallbackHandler |
getCallbackHandler() |
AbstractLoginModule.JAASUserInfo |
getCurrentUser() |
Subject |
getSubject() |
abstract UserInfo |
getUserInfo(String username) |
void |
initialize(Subject subject,
CallbackHandler callbackHandler,
Map sharedState,
Map options) |
boolean |
isAuthenticated() |
boolean |
isCommitted() |
boolean |
login() |
boolean |
logout() |
void |
setAuthenticated(boolean authState) |
void |
setCallbackHandler(CallbackHandler h) |
void |
setCommitted(boolean commitState) |
void |
setCurrentUser(AbstractLoginModule.JAASUserInfo u) |
void |
setSubject(Subject s) |
public Subject getSubject()
public void setSubject(Subject s)
public AbstractLoginModule.JAASUserInfo getCurrentUser()
public void setCurrentUser(AbstractLoginModule.JAASUserInfo u)
public CallbackHandler getCallbackHandler()
public void setCallbackHandler(CallbackHandler h)
public boolean isAuthenticated()
public boolean isCommitted()
public void setAuthenticated(boolean authState)
public void setCommitted(boolean commitState)
public boolean abort() throws LoginException
abort
in interface LoginModule
LoginException
LoginModule.abort()
public boolean commit() throws LoginException
commit
in interface LoginModule
LoginException
LoginModule.commit()
public Callback[] configureCallbacks()
public abstract UserInfo getUserInfo(String username) throws Exception
Exception
public boolean login() throws LoginException
login
in interface LoginModule
LoginException
LoginModule.login()
public boolean logout() throws LoginException
logout
in interface LoginModule
LoginException
LoginModule.logout()
public void initialize(Subject subject, CallbackHandler callbackHandler, Map sharedState, Map options)
initialize
in interface LoginModule
subject
- callbackHandler
- sharedState
- options
- LoginModule.initialize(javax.security.auth.Subject, javax.security.auth.callback.CallbackHandler, java.util.Map, java.util.Map)
Copyright © 2009 Mortbay Consulting Pty. Ltd. All Rights Reserved.