Example usage for org.springframework.security.web.authentication.www DigestAuthenticationFilter setPasswordAlreadyEncoded

List of usage examples for org.springframework.security.web.authentication.www DigestAuthenticationFilter setPasswordAlreadyEncoded

Introduction

In this page you can find the example usage for org.springframework.security.web.authentication.www DigestAuthenticationFilter setPasswordAlreadyEncoded.

Prototype

public void setPasswordAlreadyEncoded(boolean passwordAlreadyEncoded) 

Source Link

Usage

From source file:org.opendatakit.configuration.SecurityConfiguration.java

@Bean
public DigestAuthenticationFilter digestAuthenticationFilter()
        throws ODKEntityNotFoundException, ODKOverQuotaException, ODKDatastoreException, PropertyVetoException {
    DigestAuthenticationFilter digestAuthenticationFilter = new DigestAuthenticationFilter();
    digestAuthenticationFilter.setPasswordAlreadyEncoded(true);
    digestAuthenticationFilter.setAuthenticationEntryPoint(digestEntryPoint());
    digestAuthenticationFilter.setUserDetailsService(digestAndBasicLoginService());
    // https://github.com/spring-projects/spring-security/issues/3310
    digestAuthenticationFilter.setCreateAuthenticatedToken(true);
    return digestAuthenticationFilter;
}