Class AuthorizingInterceptor
java.lang.Object
org.apache.cxf.phase.AbstractPhaseInterceptor<org.apache.cxf.message.Message>
org.apache.cxf.interceptor.security.AbstractAuthorizingInInterceptor
org.apache.cxf.interceptor.security.SimpleAuthorizingInterceptor
org.apache.unomi.rest.authentication.AuthorizingInterceptor
- All Implemented Interfaces:
org.apache.cxf.interceptor.Interceptor<org.apache.cxf.message.Message>
,org.apache.cxf.phase.PhaseInterceptor<org.apache.cxf.message.Message>
public class AuthorizingInterceptor
extends org.apache.cxf.interceptor.security.SimpleAuthorizingInterceptor
Authorizing interceptor is in charge of testing that current authenticate user have the expected role during method access
-
Field Summary
Fields inherited from class org.apache.cxf.interceptor.security.SimpleAuthorizingInterceptor
globalRoles, methodRolesMap, userRolesMap
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetExpectedRoles
(Method method) Returns a list of expected roles for a given method.Methods inherited from class org.apache.cxf.interceptor.security.SimpleAuthorizingInterceptor
createMethodSig, isUserInRole, setCheckConfiguredRolesOnly, setGlobalRoles, setMethodRolesMap, setUserRolesMap
Methods inherited from class org.apache.cxf.interceptor.security.AbstractAuthorizingInInterceptor
authorize, getDenyRoles, handleMessage, isAllowAnonymousUsers, isMethodProtected, setAllowAnonymousUsers
Methods inherited from class org.apache.cxf.phase.AbstractPhaseInterceptor
addAfter, addAfter, addBefore, addBefore, getAdditionalInterceptors, getAfter, getBefore, getId, getPhase, handleFault, isGET, isRequestor, setAfter, setBefore
-
Constructor Details
-
AuthorizingInterceptor
-
-
Method Details
-
getExpectedRoles
Returns a list of expected roles for a given method. This override provide an additional lookup to the default implementation It's now possible resolve role mapping using this syntax: CLASS_NAME.METHOD_NAME- Overrides:
getExpectedRoles
in classorg.apache.cxf.interceptor.security.SimpleAuthorizingInterceptor
- Parameters:
method
- Method- Returns:
- list, empty if no roles are available
-