Class SimpleAuthorizingInterceptor
java.lang.Object
org.apache.cxf.phase.AbstractPhaseInterceptor<Message>
org.apache.cxf.interceptor.security.AbstractAuthorizingInInterceptor
org.apache.cxf.interceptor.security.SimpleAuthorizingInterceptor
- All Implemented Interfaces:
Interceptor<Message>
,PhaseInterceptor<Message>
- Direct Known Subclasses:
OperationInfoAuthorizingInterceptor
,SecureAnnotationsInterceptor
-
Field Summary
Modifier and TypeFieldDescription -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
createMethodSig
(Method method) 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) 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
-
Field Details
-
methodRolesMap
-
userRolesMap
-
globalRoles
-
-
Constructor Details
-
SimpleAuthorizingInterceptor
public SimpleAuthorizingInterceptor() -
SimpleAuthorizingInterceptor
public SimpleAuthorizingInterceptor(boolean uniqueId)
-
-
Method Details
-
isUserInRole
- Overrides:
isUserInRole
in classAbstractAuthorizingInInterceptor
-
createMethodSig
-
getExpectedRoles
Description copied from class:AbstractAuthorizingInInterceptor
Returns a list of expected roles for a given method.- Specified by:
getExpectedRoles
in classAbstractAuthorizingInInterceptor
- Parameters:
method
- Method- Returns:
- list, empty if no roles are available
-
setMethodRolesMap
-
setUserRolesMap
-
setGlobalRoles
-
setCheckConfiguredRolesOnly
public void setCheckConfiguredRolesOnly(boolean checkConfiguredRolesOnly)
-