/** * Configure jaas authentication provider. * * @param auth the auth * @param jaas the jaas * @throws Exception the exception */ protected void configureJaasAuthenticationProvider(final AuthenticationManagerBuilder auth, final MonitorProperties.Endpoints.JaasSecurity jaas) throws Exception { val p = new JaasAuthenticationProvider(); p.setLoginConfig(jaas.getLoginConfig()); p.setLoginContextName(jaas.getLoginContextName()); p.setRefreshConfigurationOnStartup(jaas.isRefreshConfigurationOnStartup()); p.afterPropertiesSet(); auth.authenticationProvider(p); }