Package org.forgerock.authz.filter.crest
Class AuthorizationFilters
- java.lang.Object
-
- org.forgerock.authz.filter.crest.AuthorizationFilters
-
public final class AuthorizationFilters extends Object
This class contains methods for creatingFilterChain
s to protect resources by performing authorization on each incoming request.- Since:
- 1.5.0
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FilterChain
createAuthorizationFilter(CollectionResourceProvider target, List<CrestAuthorizationModule> modules)
Returns a newFilterChain
which will perform authorization for each request before allowing access to the provided collection resource provider.static FilterChain
createAuthorizationFilter(CollectionResourceProvider target, CrestAuthorizationModule... modules)
Returns a newFilterChain
which will perform authorization for each request before allowing access to the provided collection resource provider.static FilterChain
createAuthorizationFilter(RequestHandler target, List<CrestAuthorizationModule> modules)
Returns a newFilterChain
which will perform authorization for each request before allowing access to the provided RequestHandler.static FilterChain
createAuthorizationFilter(RequestHandler target, CrestAuthorizationModule... modules)
Returns a newFilterChain
which will perform authorization for each request before allowing access to the provided RequestHandler.static FilterChain
createAuthorizationFilter(SingletonResourceProvider target, List<CrestAuthorizationModule> modules)
Returns a newFilterChain
which will perform authorization for each request before allowing access to the provided singleton resource provider.static FilterChain
createAuthorizationFilter(SingletonResourceProvider target, CrestAuthorizationModule... modules)
Returns a newFilterChain
which will perform authorization for each request before allowing access to the provided singleton resource provider.
-
-
-
Method Detail
-
createAuthorizationFilter
public static FilterChain createAuthorizationFilter(CollectionResourceProvider target, CrestAuthorizationModule... modules)
Returns a newFilterChain
which will perform authorization for each request before allowing access to the provided collection resource provider.- Parameters:
target
- The collection resource provider.modules
- TheCrestAuthorizationModule
s that will perform authorization for each request.- Returns:
- A new
FilterChain
which will filter requests before allowing access to the provided collection resource provider. - Throws:
NullPointerException
- If either the specifiedtarget
ormodules
parameters arenull
.
-
createAuthorizationFilter
public static FilterChain createAuthorizationFilter(CollectionResourceProvider target, List<CrestAuthorizationModule> modules)
Returns a newFilterChain
which will perform authorization for each request before allowing access to the provided collection resource provider.- Parameters:
target
- The collection resource provider.modules
- TheCrestAuthorizationModule
s that will perform authorization for each request.- Returns:
- A new
FilterChain
which will filter requests before allowing access to the provided collection resource provider. - Throws:
NullPointerException
- If either the specifiedtarget
ormodules
parameters arenull
.
-
createAuthorizationFilter
public static FilterChain createAuthorizationFilter(SingletonResourceProvider target, CrestAuthorizationModule... modules)
Returns a newFilterChain
which will perform authorization for each request before allowing access to the provided singleton resource provider.- Parameters:
target
- The singleton resource provider.modules
- TheCrestAuthorizationModule
s that will perform authorization for each request.- Returns:
- A new
FilterChain
which will filter requests before allowing access to the provided singleton resource provider. - Throws:
NullPointerException
- If either the specifiedtarget
ormodules
parameters arenull
.
-
createAuthorizationFilter
public static FilterChain createAuthorizationFilter(SingletonResourceProvider target, List<CrestAuthorizationModule> modules)
Returns a newFilterChain
which will perform authorization for each request before allowing access to the provided singleton resource provider.- Parameters:
target
- The singleton resource provider.modules
- TheCrestAuthorizationModule
s that will perform authorization for each request.- Returns:
- A new
FilterChain
which will filter requests before allowing access to the provided singleton resource provider. - Throws:
NullPointerException
- If either the specifiedtarget
ormodules
parameters arenull
.
-
createAuthorizationFilter
public static FilterChain createAuthorizationFilter(RequestHandler target, CrestAuthorizationModule... modules)
Returns a newFilterChain
which will perform authorization for each request before allowing access to the provided RequestHandler.- Parameters:
target
- The RequestHandler.modules
- TheCrestAuthorizationModule
s that will perform authorization for each request.- Returns:
- A new
FilterChain
which will filter requests before allowing access to the provided RequestHandler. - Throws:
NullPointerException
- If either the specifiedtarget
ormodules
parameters arenull
.
-
createAuthorizationFilter
public static FilterChain createAuthorizationFilter(RequestHandler target, List<CrestAuthorizationModule> modules)
Returns a newFilterChain
which will perform authorization for each request before allowing access to the provided RequestHandler.- Parameters:
target
- The RequestHandler.modules
- TheCrestAuthorizationModule
s that will perform authorization for each request.- Returns:
- A new
FilterChain
which will filter requests before allowing access to the provided RequestHandler. - Throws:
NullPointerException
- If either the specifiedtarget
ormodules
parameters arenull
.
-
-