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

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

Introduction

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

Prototype

public Collection<GrantedAuthority> getAuthorities() 

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