SecurityRuleLoader

public class SecurityRuleLoader

Helper class that scans an application context for security rules and re-initializes the MotechProxyManager security chain.

Methods

loadRules

public synchronized void loadRules(ApplicationContext applicationContext)

Attempts to load rules from the application context, if rules are found, the security configuration is updated. Synchronized so there are not race conditions on the data.

setAllSecurityRules

public void setAllSecurityRules(AllMotechSecurityRules allSecurityRules)

setProxyManager

public void setProxyManager(MotechProxyManager proxyManager)