|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.jaas.sp.AbstractLoginModule info.magnolia.jaas.sp.jcr.JCRAuthenticationModule
public class JCRAuthenticationModule
Authentication module implementation using JCR to retrieve the users.
Field Summary | |
---|---|
protected info.magnolia.cms.security.User |
user
|
Fields inherited from class info.magnolia.jaas.sp.AbstractLoginModule |
---|
callbackHandler, name, OPTION_REALM, OPTION_SKIP_ON_PREVIOUS_SUCCESS, OPTION_USE_REALM_CALLBACK, options, pswd, realm, sharedState, STATUS, STATUS_FAILED, STATUS_SKIPPED, STATUS_SUCCEDED, STATUS_SUCCEEDED, STATUS_UNAVAILABLE, subject, success, TRY_FIRST_PASS, TRY_MAPPED_PASS, USE_FIRST_PASS, USE_MAPPED_PASS, useRealmCallback |
Constructor Summary | |
---|---|
JCRAuthenticationModule()
|
Method Summary | |
---|---|
void |
collectGroupNames()
Extract all the configured groups from the given node. |
void |
collectRoleNames()
Extract all the configured roles from the given node. |
int |
getMaxAttempts()
Get number of failed login attempts before locking account. |
long |
getTimeLock()
Get time period for time lockout. |
info.magnolia.cms.security.User |
getUser()
|
protected void |
initUser()
|
protected void |
matchPassword()
|
void |
setACL()
Set access control list from the user, roles and groups. |
void |
setEntity()
Set user details. |
void |
validateUser()
/** Checks is the credentials exist in the repository. |
Methods inherited from class info.magnolia.jaas.sp.AbstractLoginModule |
---|
abort, addGroupName, addRoleName, commit, getGroupNames, getRoleNames, getSharedStatus, getSkip, initialize, login, logout, release, setGroupNames, setRoleNames, setSharedStatus |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected info.magnolia.cms.security.User user
Constructor Detail |
---|
public JCRAuthenticationModule()
Method Detail |
---|
public int getMaxAttempts()
public long getTimeLock()
public void validateUser() throws LoginException
validateUser
in class AbstractLoginModule
LoginException
- or specific subclasses (which will be handled further for user feedback)protected void initUser() throws LoginException
LoginException
protected void matchPassword() throws LoginException
LoginException
public void setEntity()
setEntity
in class AbstractLoginModule
public void setACL()
setACL
in class AbstractLoginModule
public void collectRoleNames()
public void collectGroupNames()
public info.magnolia.cms.security.User getUser()
getUser
in interface UserAwareLoginModule
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |