com.atlassian.seraph.auth
Interface RoleMapper

All Superinterfaces:
Initable
All Known Implementing Classes:
GroupRoleMapper, SimpleAbstractRoleMapper

public interface RoleMapper
extends Initable

Determines whether an authenticated user has a "role" (permission) within the system, and specifically, whether they have permission to log in to the system.

In applications using Seraph, role assignment is typically done by checking for membership of certain groups, eg:


Method Summary
 boolean canLogin(Principal user, javax.servlet.http.HttpServletRequest request)
           
 boolean hasRole(Principal user, javax.servlet.http.HttpServletRequest request, String role)
           
 
Methods inherited from interface com.atlassian.seraph.Initable
init
 

Method Detail

hasRole

boolean hasRole(Principal user,
                javax.servlet.http.HttpServletRequest request,
                String role)

canLogin

boolean canLogin(Principal user,
                 javax.servlet.http.HttpServletRequest request)


Copyright © 2013 Atlassian. All Rights Reserved.