Package org.forgerock.authz.filter.crest
Class AuthorizationFilters
java.lang.Object
org.forgerock.authz.filter.crest.AuthorizationFilters
This class contains methods for creating
FilterChains to protect resources by performing authorization on
each incoming request.- Since:
- 1.5.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic FilterChaincreateAuthorizationFilter(CollectionResourceProvider target, List<CrestAuthorizationModule> modules) Returns a newFilterChainwhich will perform authorization for each request before allowing access to the provided collection resource provider.static FilterChaincreateAuthorizationFilter(CollectionResourceProvider target, CrestAuthorizationModule... modules) Returns a newFilterChainwhich will perform authorization for each request before allowing access to the provided collection resource provider.static FilterChaincreateAuthorizationFilter(RequestHandler target, List<CrestAuthorizationModule> modules) Returns a newFilterChainwhich will perform authorization for each request before allowing access to the provided RequestHandler.static FilterChaincreateAuthorizationFilter(RequestHandler target, CrestAuthorizationModule... modules) Returns a newFilterChainwhich will perform authorization for each request before allowing access to the provided RequestHandler.static FilterChaincreateAuthorizationFilter(SingletonResourceProvider target, List<CrestAuthorizationModule> modules) Returns a newFilterChainwhich will perform authorization for each request before allowing access to the provided singleton resource provider.static FilterChaincreateAuthorizationFilter(SingletonResourceProvider target, CrestAuthorizationModule... modules) Returns a newFilterChainwhich will perform authorization for each request before allowing access to the provided singleton resource provider.
-
Method Details
-
createAuthorizationFilter
public static FilterChain createAuthorizationFilter(CollectionResourceProvider target, CrestAuthorizationModule... modules) Returns a newFilterChainwhich will perform authorization for each request before allowing access to the provided collection resource provider.- Parameters:
target- The collection resource provider.modules- TheCrestAuthorizationModules that will perform authorization for each request.- Returns:
- A new
FilterChainwhich will filter requests before allowing access to the provided collection resource provider. - Throws:
NullPointerException- If either the specifiedtargetormodulesparameters arenull.
-
createAuthorizationFilter
public static FilterChain createAuthorizationFilter(CollectionResourceProvider target, List<CrestAuthorizationModule> modules) Returns a newFilterChainwhich will perform authorization for each request before allowing access to the provided collection resource provider.- Parameters:
target- The collection resource provider.modules- TheCrestAuthorizationModules that will perform authorization for each request.- Returns:
- A new
FilterChainwhich will filter requests before allowing access to the provided collection resource provider. - Throws:
NullPointerException- If either the specifiedtargetormodulesparameters arenull.
-
createAuthorizationFilter
public static FilterChain createAuthorizationFilter(SingletonResourceProvider target, CrestAuthorizationModule... modules) Returns a newFilterChainwhich will perform authorization for each request before allowing access to the provided singleton resource provider.- Parameters:
target- The singleton resource provider.modules- TheCrestAuthorizationModules that will perform authorization for each request.- Returns:
- A new
FilterChainwhich will filter requests before allowing access to the provided singleton resource provider. - Throws:
NullPointerException- If either the specifiedtargetormodulesparameters arenull.
-
createAuthorizationFilter
public static FilterChain createAuthorizationFilter(SingletonResourceProvider target, List<CrestAuthorizationModule> modules) Returns a newFilterChainwhich will perform authorization for each request before allowing access to the provided singleton resource provider.- Parameters:
target- The singleton resource provider.modules- TheCrestAuthorizationModules that will perform authorization for each request.- Returns:
- A new
FilterChainwhich will filter requests before allowing access to the provided singleton resource provider. - Throws:
NullPointerException- If either the specifiedtargetormodulesparameters arenull.
-
createAuthorizationFilter
public static FilterChain createAuthorizationFilter(RequestHandler target, CrestAuthorizationModule... modules) Returns a newFilterChainwhich will perform authorization for each request before allowing access to the provided RequestHandler.- Parameters:
target- The RequestHandler.modules- TheCrestAuthorizationModules that will perform authorization for each request.- Returns:
- A new
FilterChainwhich will filter requests before allowing access to the provided RequestHandler. - Throws:
NullPointerException- If either the specifiedtargetormodulesparameters arenull.
-
createAuthorizationFilter
public static FilterChain createAuthorizationFilter(RequestHandler target, List<CrestAuthorizationModule> modules) Returns a newFilterChainwhich will perform authorization for each request before allowing access to the provided RequestHandler.- Parameters:
target- The RequestHandler.modules- TheCrestAuthorizationModules that will perform authorization for each request.- Returns:
- A new
FilterChainwhich will filter requests before allowing access to the provided RequestHandler. - Throws:
NullPointerException- If either the specifiedtargetormodulesparameters arenull.
-