@Test void testGetSecurityContexts() { assertEquals( singletonList(securityContext), securityContextRegistry.getSecurityContexts().collect(toList())); }
@Override public Stream<SecurityContext> getSecurityContexts() { return httpSessionMap.values().stream().map(this::getSecurityContext).filter(Objects::nonNull); }
SecurityContextRegistryImpl implements SecurityContextRegistry { @Override public Stream<SecurityContext> getSecurityContexts() { return httpSessionMap.values().stream().map(this::getSecurityContext).filter(Objects::nonNull); } }
SecurityContextRegistryImpl implements SecurityContextRegistry { @Override public Stream<SecurityContext> getSecurityContexts() { return httpSessionMap.values().stream().map(this::getSecurityContext).filter(Objects::nonNull); } SecurityContextRegistryImpl(); }
SecurityContextRegistryImpl implements SecurityContextRegistry { @Override public Stream<SecurityContext> getSecurityContexts() { return httpSessionMap.values().stream().map(this::getSecurityContext).filter(Objects::nonNull); } SecurityContextRegistryImpl(); @Override SecurityContext getSecurityContext(String sessionId); @Override Stream<SecurityContext> getSecurityContexts(); @EventListener void handleHttpSessionCreatedEvent(HttpSessionCreatedEvent httpSessionCreatedEvent); @EventListener void handleHttpSessionDestroyedEvent(HttpSessionDestroyedEvent httpSessionDestroyedEvent); }
SecurityContextRegistryImpl implements SecurityContextRegistry { @Override public Stream<SecurityContext> getSecurityContexts() { return httpSessionMap.values().stream().map(this::getSecurityContext).filter(Objects::nonNull); } SecurityContextRegistryImpl(); @Override SecurityContext getSecurityContext(String sessionId); @Override Stream<SecurityContext> getSecurityContexts(); @EventListener void handleHttpSessionCreatedEvent(HttpSessionCreatedEvent httpSessionCreatedEvent); @EventListener void handleHttpSessionDestroyedEvent(HttpSessionDestroyedEvent httpSessionDestroyedEvent);  }