|
||||||||||
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.MagnoliaAuthenticationModule
public class MagnoliaAuthenticationModule
Authentication module implementation using JCR to retrieve the users.
Nested Class Summary | |
---|---|
class |
MagnoliaAuthenticationModule.MagnoliaJRAdminPrincipal
As silly as it seems this class sole purpose of existence is to implement Serializable required by JR itself. |
Field Summary | |
---|---|
protected info.magnolia.cms.security.User |
user
|
Fields inherited from class info.magnolia.jaas.sp.AbstractLoginModule |
---|
callbackHandler, log, 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 | |
---|---|
MagnoliaAuthenticationModule()
|
Method Summary | |
---|---|
void |
collectGroupNames()
Extract all the configured groups from the given node. |
void |
collectRoleNames()
Extract all the configured roles from the given node. |
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 MagnoliaAuthenticationModule()
Method Detail |
---|
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 |