@Test void getTokenUser() { assertThat(securityDetailsService.getTokenUser(), is(LOGIN)); SecurityContextHolder.getContext().setAuthentication(null); assertNull(securityDetailsService.getTokenUser()); }
@Override public String getTokenUser() { Authentication authentication = getAuthentication(); if (authentication == null) return null; return authentication.getName(); }
OidcSecurityDetailsServiceImpl implements OidcSecurityDetailsService { @Override public String getTokenUser() { Authentication authentication = getAuthentication(); if (authentication == null) return null; return authentication.getName(); } }
OidcSecurityDetailsServiceImpl implements OidcSecurityDetailsService { @Override public String getTokenUser() { Authentication authentication = getAuthentication(); if (authentication == null) return null; return authentication.getName(); }  }
OidcSecurityDetailsServiceImpl implements OidcSecurityDetailsService { @Override public String getTokenUser() { Authentication authentication = getAuthentication(); if (authentication == null) return null; return authentication.getName(); }  @Override String getTokenRealm(); @Override String getTokenUser(); }
OidcSecurityDetailsServiceImpl implements OidcSecurityDetailsService { @Override public String getTokenUser() { Authentication authentication = getAuthentication(); if (authentication == null) return null; return authentication.getName(); }  @Override String getTokenRealm(); @Override String getTokenUser();  }