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

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

Introduction

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

Prototype

public String getRealmName() 

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 ww  .ja  v  a2 s. c om
    assertThat(ep.getNonceValiditySeconds()).isEqualTo(12);
}