|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.seraph.auth.GroupRoleMapper
public class GroupRoleMapper
A simple RoleMapper which maps directly between group names and role names. If a user is a member of someGroup, the are in the 'someGroup' role. Users can log in if they exist.
| Constructor Summary | |
|---|---|
GroupRoleMapper()
|
|
| Method Summary | |
|---|---|
boolean |
canLogin(java.security.Principal user,
javax.servlet.http.HttpServletRequest request)
Users can login if they exist. |
boolean |
hasRole(java.security.Principal user,
javax.servlet.http.HttpServletRequest request,
java.lang.String role)
Assume that roles == groups. |
void |
init(java.util.Map params,
SecurityConfig config)
Initialise the configuration object with the given "init-params". |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GroupRoleMapper()
| Method Detail |
|---|
public void init(java.util.Map params,
SecurityConfig config)
Initable
init in interface Initableparams - The map of "init-params" extracted from the Seraph config file. This is guaranteed not null.config - The Seraph SecurityConfig class that is initialising the config objects. This object will only be partially initialised at this time.
public boolean hasRole(java.security.Principal user,
javax.servlet.http.HttpServletRequest request,
java.lang.String role)
hasRole in interface RoleMapper
public boolean canLogin(java.security.Principal user,
javax.servlet.http.HttpServletRequest request)
canLogin in interface RoleMapper
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||