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

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

Introduction

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

Prototype

protected final DigestAuthenticationEntryPoint getAuthenticationEntryPoint() 

Source Link

Usage

From source file:org.springframework.security.web.authentication.www.DigestAuthenticationFilterTests.java

@Test
public void testGettersSetters() {
    DigestAuthenticationFilter filter = new DigestAuthenticationFilter();
    filter.setUserDetailsService(mock(UserDetailsService.class));
    assertThat(filter.getUserDetailsService() != null).isTrue();

    filter.setAuthenticationEntryPoint(new DigestAuthenticationEntryPoint());
    assertThat(filter.getAuthenticationEntryPoint() != null).isTrue();

    filter.setUserCache(null);//  w ww  .jav  a2 s .com
    assertThat(filter.getUserCache()).isNull();
    filter.setUserCache(new NullUserCache());
    assertThat(filter.getUserCache()).isNotNull();
}