|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.jaas.sp.AbstractLoginModule
public abstract class AbstractLoginModule
Abstract implementation of the LoginModule
providing common methods and constants implementation.
Field Summary | |
---|---|
CallbackHandler |
callbackHandler
|
protected org.slf4j.Logger |
log
|
String |
name
|
static String |
OPTION_REALM
|
static String |
OPTION_SKIP_ON_PREVIOUS_SUCCESS
|
static String |
OPTION_USE_REALM_CALLBACK
|
Map |
options
|
char[] |
pswd
|
protected String |
realm
The realm we login into. |
Map |
sharedState
|
static String |
STATUS
|
static int |
STATUS_FAILED
|
static int |
STATUS_SKIPPED
|
static int |
STATUS_SUCCEDED
Deprecated. use STATUS_SUCCEEDED |
static int |
STATUS_SUCCEEDED
|
static int |
STATUS_UNAVAILABLE
|
Subject |
subject
|
boolean |
success
|
static String |
TRY_FIRST_PASS
|
static String |
TRY_MAPPED_PASS
|
static String |
USE_FIRST_PASS
|
static String |
USE_MAPPED_PASS
|
protected boolean |
useRealmCallback
Allow the client to define the realm he logs into. |
Constructor Summary | |
---|---|
AbstractLoginModule()
|
Method Summary | |
---|---|
boolean |
abort()
|
void |
addGroupName(String groupName)
|
void |
addRoleName(String roleName)
|
boolean |
commit()
Updates subject with ACL and other properties. |
Set |
getGroupNames()
|
Set |
getRoleNames()
|
int |
getSharedStatus()
|
protected boolean |
getSkip()
Tests if the option skip_on_previous_success is set to true and preceding LoginModule was successful. |
void |
initialize(Subject subject,
CallbackHandler callbackHandler,
Map sharedState,
Map options)
|
boolean |
login()
|
boolean |
logout()
|
abstract boolean |
release()
Releases all associated memory. |
abstract void |
setACL()
Sets access control list from the user, roles and groups. |
abstract void |
setEntity()
Sets user details. |
void |
setGroupNames(Set names)
|
void |
setRoleNames(Set names)
|
void |
setSharedStatus(int status)
Sets shared status value to be used by subsequent LoginModule(s). |
abstract void |
validateUser()
Checks if the credentials exist in the repository. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String OPTION_SKIP_ON_PREVIOUS_SUCCESS
public static final String OPTION_REALM
public static final String OPTION_USE_REALM_CALLBACK
public static final String STATUS
public static final int STATUS_SUCCEEDED
public static final int STATUS_SUCCEDED
public static final int STATUS_FAILED
public static final int STATUS_SKIPPED
public static final int STATUS_UNAVAILABLE
public static final String TRY_FIRST_PASS
public static final String USE_FIRST_PASS
public static final String TRY_MAPPED_PASS
public static final String USE_MAPPED_PASS
public Subject subject
public CallbackHandler callbackHandler
public Map sharedState
public Map options
public String name
public char[] pswd
protected String realm
protected boolean useRealmCallback
public boolean success
protected org.slf4j.Logger log
Constructor Detail |
---|
public AbstractLoginModule()
Method Detail |
---|
public void initialize(Subject subject, CallbackHandler callbackHandler, Map sharedState, Map options)
initialize
in interface LoginModule
public boolean login() throws LoginException
login
in interface LoginModule
LoginException
public boolean commit() throws LoginException
commit
in interface LoginModule
LoginException
public boolean abort() throws LoginException
abort
in interface LoginModule
LoginException
public boolean logout() throws LoginException
logout
in interface LoginModule
LoginException
public int getSharedStatus()
public void setSharedStatus(int status)
protected boolean getSkip()
public void setGroupNames(Set names)
public void addGroupName(String groupName)
public Set getGroupNames()
public void setRoleNames(Set names)
public void addRoleName(String roleName)
public Set getRoleNames()
public abstract boolean release()
public abstract void validateUser() throws LoginException
LoginException
- or specific subclasses to report failures.public abstract void setEntity()
public abstract void setACL()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |