return digestAuthenticationFilter;
}
@Bean
public DigestAuthenticationEntryPoint digestEntryPoint() {
DigestAuthenticationEntryPoint digestAuthenticationEntryPoint = new DigestAuthenticationEntryPoint();
digestAuthenticationEntryPoint.setKey(env.getProperty("app.security.digest.key", DEFAULT_DIGEST_KEY));
digestAuthenticationEntryPoint.setRealmName(env.getProperty("app.security.digest.realm", DEFAULT_DIGEST_REALM));
digestAuthenticationEntryPoint.setNonceValiditySeconds(Integer.valueOf(env.getProperty("app.security.digest.validity", DEFAULT_DIGEST_NONCE_VALIDITY)));
return digestAuthenticationEntryPoint;
}