MotechURLSecurityRule¶
-
public class
MotechURLSecurityRule
¶ The MotechURLSecurityRule specifies the configuration for setting up a Spring SecurityFilterChain.
Details regarding configuration:
- pattern - URL pattern the security rule applies to
- supportedSchemes - Security rules that should apply to the URL, such as BASIC or OPEN_ID
- protocol - Protocol the security rule applies to, such as HTTP or HTTPS
- permissionAccess - Requires user has at least one of the listed permission to access the URL
- userAccess - User specific access for a URL, such as motech or admin, when combined with permission access they act as an either or (one must be true)
- priority - For future use in determining the ordering of filter chains, may be deprecated depending on UI implementation
- rest - Whether the endpoint is meant for a form login process or as an REST end-point that does not create a session for the
- origin - The module or user the rule originated from
- version - The version of the module or platform the rule was created
- methodsRequired - HTTP methods the rule applies to, if ANY is used then any method is matched, if a set is used, such as GET, POST, etc, then each will have its own corresponding filter chain with the same security found in that rule
Methods¶
getMethodsRequired¶
-
public List<HTTPMethod>
getMethodsRequired
()¶
setMethodsRequired¶
-
public void
setMethodsRequired
(List<HTTPMethod> methodsRequired)¶