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

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

Introduction

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

Prototype

public String getKey() 

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  . j  ava  2s .c  o m
    assertThat(ep.getNonceValiditySeconds()).isEqualTo(12);
}