public class JCRAuthenticationModule extends AbstractLoginModule implements UserAwareLoginModule, Serializable
Modifier and Type | Field and Description |
---|---|
protected User |
user |
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 and Description |
---|
JCRAuthenticationModule() |
Modifier and Type | Method and Description |
---|---|
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() |
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.
|
abort, addGroupName, addRoleName, commit, getGroupNames, getRoleNames, getSharedStatus, getSkip, initialize, login, logout, release, setGroupNames, setRoleNames, setSharedStatus
protected User user
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 User getUser()
getUser
in interface UserAwareLoginModule
Copyright © 2003–2019 Magnolia International Ltd.. All rights reserved.