Example usage for org.springframework.security.cas.authentication CasAuthenticationToken getUserDetails

List of usage examples for org.springframework.security.cas.authentication CasAuthenticationToken getUserDetails

Introduction

In this page you can find the example usage for org.springframework.security.cas.authentication CasAuthenticationToken getUserDetails.

Prototype

public UserDetails getUserDetails() 

Source Link

Usage

From source file:com.vnomicscorp.spring.security.cas.authentication.redis.DefaultCasAuthenticationTokenSerializerTest.java

private void assertTokenEquals(CasAuthenticationToken expected, CasAuthenticationToken got) {
    assertEquals(expected.getName(), got.getName());
    assertEquals(expected.isAuthenticated(), got.isAuthenticated());
    assertEquals(expected.getAuthorities(), got.getAuthorities());
    assertEquals(expected.getCredentials(), got.getCredentials());
    assertEquals(expected.getDetails(), got.getDetails());
    assertEquals(expected.getKeyHash(), got.getKeyHash());
    assertEquals(expected.getPrincipal(), got.getPrincipal());
    assertEquals(expected.getUserDetails(), got.getUserDetails());
}