public class GroupRoleMapper extends Object implements com.atlassian.seraph.auth.RoleMapper
| Constructor and Description |
|---|
GroupRoleMapper(com.atlassian.seraph.auth.Authenticator authenticator,
com.atlassian.user.GroupManager groupManager) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canLogin(Principal user,
javax.servlet.http.HttpServletRequest request) |
boolean |
hasRole(Principal user,
javax.servlet.http.HttpServletRequest request,
String role)
Assume that roles == groups.
|
void |
init(Map params,
com.atlassian.seraph.config.SecurityConfig config) |
public GroupRoleMapper(com.atlassian.seraph.auth.Authenticator authenticator,
com.atlassian.user.GroupManager groupManager)
public void init(Map params, com.atlassian.seraph.config.SecurityConfig config)
init in interface com.atlassian.seraph.Initablepublic boolean hasRole(Principal user, javax.servlet.http.HttpServletRequest request, String role)
hasRole in interface com.atlassian.seraph.auth.RoleMapperpublic boolean canLogin(Principal user, javax.servlet.http.HttpServletRequest request)
canLogin in interface com.atlassian.seraph.auth.RoleMapperCopyright © 2018 Atlassian. All rights reserved.