HDIV configuration

This magic class will bring in HDIV capability to your application without too much trouble. The full class is as shown here:

@Configuration
@EnableHdivWebSecurity
public class HdivSecurityConfig extends HdivWebSecurityConfigurerAdapter {
@Override
public void addExclusions(final ExclusionRegistry registry) {
registry.addUrlExclusions("/login");
}
}

The heavy lifting is done by the class that we are extending, HdivWebSecurityConfigurerAdapter. Also, the @EnableHdivWebSecurity annotation makes sure that much of the setup is automatically taken care of. We just need to make sure that the configuration of our login page URL is excluded from HDIV security by overriding the addExclusions method.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.138.117.75