MotechProxyManager¶
-
public class
MotechProxyManager
¶ The MotechProxyManager acts as a wrapper around Spring’s FilterChainProxy. The FilterChainProxy contains a list of immutable SecurityFilterChain objects which Spring’s security consults for filters when handling requests. In order to dynamically define new secure, a new FilterChainProxy is constructed and the reference is updated. The MotechProxyManager acts as a customized delegate in MotechDelegatingFilterProxy.
Methods¶
getDefaultSecurityConfiguration¶
-
public MotechSecurityConfiguration
getDefaultSecurityConfiguration
()¶ This method reads default security configuration from the file containing security rules and returns it.
Returns: MotechSecurityConfiguration default security rules
getFilterChainProxy¶
-
public FilterChainProxy
getFilterChainProxy
()¶
initializeProxyChain¶
-
public void
initializeProxyChain
()¶ This method serves the same purpose of rebuildProxyChain, but does not require any kind of security authentication so it should only ever be used by the activator, which does not have an authentication object.
rebuildProxyChain¶
-
public synchronized void
rebuildProxyChain
()¶ Method to invoke to dynamically re-define the Spring security. All rules converted into security filter chains in order to create a new FilterChainProxy. The order of the rules in the list matters for filtering purposes.
setProxy¶
-
public void
setProxy
(FilterChainProxy proxy)¶