public class SimpleAuthorizingInterceptor extends AbstractAuthorizingInInterceptor
Modifier and Type | Field and Description |
---|---|
protected List<String> |
globalRoles |
protected Map<String,List<String>> |
methodRolesMap |
protected Map<String,List<String>> |
userRolesMap |
Constructor and Description |
---|
SimpleAuthorizingInterceptor() |
SimpleAuthorizingInterceptor(boolean uniqueId) |
Modifier and Type | Method and Description |
---|---|
protected String |
createMethodSig(Method method) |
protected List<String> |
getExpectedRoles(Method method)
Returns a list of expected roles for a given method.
|
protected boolean |
isUserInRole(SecurityContext sc,
List<String> roles,
boolean deny) |
void |
setCheckConfiguredRolesOnly(boolean checkConfiguredRolesOnly) |
void |
setGlobalRoles(String roles) |
void |
setMethodRolesMap(Map<String,String> rolesMap) |
void |
setUserRolesMap(Map<String,String> rolesMap) |
authorize, getDenyRoles, getTargetMethod, handleMessage, isAllowAnonymousUsers, isMethodProtected, setAllowAnonymousUsers
addAfter, addAfter, addBefore, addBefore, getAdditionalInterceptors, getAfter, getBefore, getId, getPhase, handleFault, isGET, isRequestor, setAfter, setBefore
public SimpleAuthorizingInterceptor()
public SimpleAuthorizingInterceptor(boolean uniqueId)
protected boolean isUserInRole(SecurityContext sc, List<String> roles, boolean deny)
isUserInRole
in class AbstractAuthorizingInInterceptor
protected List<String> getExpectedRoles(Method method)
AbstractAuthorizingInInterceptor
getExpectedRoles
in class AbstractAuthorizingInInterceptor
method
- Methodpublic void setGlobalRoles(String roles)
public void setCheckConfiguredRolesOnly(boolean checkConfiguredRolesOnly)
Apache CXF