Example usage for org.springframework.security.web.authentication.www DigestAuthenticationEntryPoint getNonceValiditySeconds

List of usage examples for org.springframework.security.web.authentication.www DigestAuthenticationEntryPoint getNonceValiditySeconds

Introduction

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

Prototype

public int getNonceValiditySeconds() 

Source Link

Usage

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

@Test
public void testGettersSetters() {
    DigestAuthenticationEntryPoint ep = new DigestAuthenticationEntryPoint();
    assertThat(ep.getNonceValiditySeconds()).isEqualTo(300); // 5 mins default
    ep.setRealmName("realm");
    assertThat(ep.getRealmName()).isEqualTo("realm");
    ep.setKey("dcdc");
    assertThat(ep.getKey()).isEqualTo("dcdc");
    ep.setNonceValiditySeconds(12);/*from w w  w .  ja v a 2s. com*/
    assertThat(ep.getNonceValiditySeconds()).isEqualTo(12);
}