|
||||||||||
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 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. |
User |
getUser()
|
UserManager |
getUserManager()
Override this to support any configured/non-configured user manager. |
protected void |
initUser()
|
protected void |
matchPassword()
|
boolean |
release()
Releases all associated memory. |
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, setGroupNames, setRoleNames, setSharedStatus |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected User user
Constructor Detail |
---|
public JCRAuthenticationModule()
Method Detail |
---|
public int getMaxAttempts()
public long getTimeLock()
public boolean release()
release
in class AbstractLoginModule
public void validateUser() throws javax.security.auth.login.LoginException
validateUser
in class AbstractLoginModule
javax.security.auth.login.LoginException
- or specific subclasses (which will be handled further for user feedback)protected void initUser()
protected void matchPassword() throws javax.security.auth.login.LoginException
javax.security.auth.login.LoginException
public UserManager getUserManager()
public void setEntity()
setEntity
in class AbstractLoginModule
public void setACL()
setACL
in class AbstractLoginModule
public void collectRoleNames()
public void collectGroupNames()
public User getUser()
getUser
in interface UserAwareLoginModule
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |