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<String,?> sharedState,
Map<String,?> options) |
boolean |
isAuthenticated() |
boolean |
isCommitted() |
boolean |
isIgnored() |
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
- if unable to abortLoginModule.abort()
public boolean commit() throws LoginException
commit
in interface LoginModule
LoginException
- if unable to commitLoginModule.commit()
public Callback[] configureCallbacks()
public boolean isIgnored()
public abstract UserInfo getUserInfo(String username) throws Exception
Exception
public boolean login() throws LoginException
login
in interface LoginModule
LoginException
- if unable to loginLoginModule.login()
public boolean logout() throws LoginException
logout
in interface LoginModule
LoginException
- if unable to logoutLoginModule.logout()
public void initialize(Subject subject, CallbackHandler callbackHandler, Map<String,?> sharedState, Map<String,?> options)
initialize
in interface LoginModule
subject
- the subjectcallbackHandler
- the callback handlersharedState
- the shared state mapoptions
- the option mapLoginModule.initialize(javax.security.auth.Subject, javax.security.auth.callback.CallbackHandler, java.util.Map, java.util.Map)
Copyright © 1995-2015 Webtide. All Rights Reserved.