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