|
||||||||||
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.JCRAuthorizationModule
public class JCRAuthorizationModule
This is a default login module for magnolia, it uses initialized repository as defined by the provider interface.
Field Summary |
---|
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 | |
---|---|
JCRAuthorizationModule()
|
Method Summary | |
---|---|
protected void |
addGroups(String[] groups)
Sets the list of groups, info.magnolia.jaas.principal.GroupList . |
protected void |
addRoles(String[] roles)
Sets the list of roles, info.magnolia.jaas.principal.RoleList . |
boolean |
login()
|
void |
setACL()
Sets access control list from the user, roles and groups. |
protected void |
setACLForGroups(String[] groups,
info.magnolia.cms.security.auth.PrincipalCollection principalList)
Looks for groups configured in magnolia repository with the given name, and configures ACLs for it. |
protected void |
setACLForRoles(String[] roles,
info.magnolia.cms.security.auth.PrincipalCollection principalList)
Looks for role configured in magnolia repository with the given name, and configures ACLs for it. |
protected void |
setACLForUser(info.magnolia.cms.security.auth.PrincipalCollection principalList,
info.magnolia.cms.security.User user,
info.magnolia.cms.security.SecuritySupport securitySupport)
|
void |
setEntity()
Sets user details. |
void |
validateUser()
Checks if the credentials exist in the repository. |
Methods inherited from class info.magnolia.jaas.sp.AbstractLoginModule |
---|
abort, addGroupName, addRoleName, commit, getGroupNames, getRoleNames, getSharedStatus, getSkip, initialize, logout, release, setGroupNames, setRoleNames, setSharedStatus |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JCRAuthorizationModule()
Method Detail |
---|
public void validateUser() throws LoginException
AbstractLoginModule
validateUser
in class AbstractLoginModule
LoginException
- or specific subclasses to report failures.public boolean login() throws LoginException
login
in interface LoginModule
login
in class AbstractLoginModule
LoginException
public void setACL()
setACL
in class AbstractLoginModule
protected void setACLForUser(info.magnolia.cms.security.auth.PrincipalCollection principalList, info.magnolia.cms.security.User user, info.magnolia.cms.security.SecuritySupport securitySupport)
public void setEntity()
AbstractLoginModule
setEntity
in class AbstractLoginModule
protected void addGroups(String[] groups)
info.magnolia.jaas.principal.GroupList
.
groups
- array of group namesprotected void addRoles(String[] roles)
info.magnolia.jaas.principal.RoleList
.
roles
- array of role namesprotected void setACLForRoles(String[] roles, info.magnolia.cms.security.auth.PrincipalCollection principalList)
roles
- array of role names.principalList
- PrincipalCollectionprotected void setACLForGroups(String[] groups, info.magnolia.cms.security.auth.PrincipalCollection principalList)
groups
- array of group names.principalList
- PrincipalCollection
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |