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

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

Introduction

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

Prototype

@Override
    public Object getPrincipal() 

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());
}