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

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

Introduction

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

Prototype

public boolean isAuthenticated() 

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