@Test public void testInvalidate() throws RemoteApiException { testAuthentication(); proxy.invalidate(JIRAWEBHOOK); assertFalse(proxy.isAuthenticated(JIRAWEBHOOK)); assertTrue(proxy.getToken(JIRAWEBHOOK).getSessionToken().equals(sessionToken.getToken())); assertTrue(proxy.getToken(JIRAWEBHOOK).getKeyManagerToken().equals(kmToken.getToken())); }
@Override public void invalidate(String userId) { contextForUser(userId).invalidateAuthentication(); LOG.info("Invalidate session to {}", userId); }
AuthenticationProxyImpl implements AuthenticationProxy { @Override public void invalidate(String userId) { contextForUser(userId).invalidateAuthentication(); LOG.info("Invalidate session to {}", userId); } }
AuthenticationProxyImpl implements AuthenticationProxy { @Override public void invalidate(String userId) { contextForUser(userId).invalidateAuthentication(); LOG.info("Invalidate session to {}", userId); }  }
AuthenticationProxyImpl implements AuthenticationProxy { @Override public void invalidate(String userId) { contextForUser(userId).invalidateAuthentication(); LOG.info("Invalidate session to {}", userId); }  @PostConstruct void init(); @Override void authenticate(String userId); @Override boolean isAuthenticated(String user); @Override void invalidate(String userId); @Override AuthenticationToken getToken(String configurationId); @Override String getSessionToken(String configurationId); @Override synchronized void reAuthOrThrow(String userId, RemoteApiException remoteApiException); @Override synchronized AuthenticationToken reAuthSessionOrThrow(String sessionToken, RemoteApiException remoteApiException); @Override boolean sessionNoLongerEntitled(int code); @Override boolean sessionUnauthorized(int code); @Override void registerUser(String userId, KeyStore keyStore, String keyStorePass); @Override Client httpClientForUser(String userId, ServiceName serviceName); @Override Client httpClientForSessionToken(String sessionToken, ServiceName serviceName); }
AuthenticationProxyImpl implements AuthenticationProxy { @Override public void invalidate(String userId) { contextForUser(userId).invalidateAuthentication(); LOG.info("Invalidate session to {}", userId); }  @PostConstruct void init(); @Override void authenticate(String userId); @Override boolean isAuthenticated(String user); @Override void invalidate(String userId); @Override AuthenticationToken getToken(String configurationId); @Override String getSessionToken(String configurationId); @Override synchronized void reAuthOrThrow(String userId, RemoteApiException remoteApiException); @Override synchronized AuthenticationToken reAuthSessionOrThrow(String sessionToken, RemoteApiException remoteApiException); @Override boolean sessionNoLongerEntitled(int code); @Override boolean sessionUnauthorized(int code); @Override void registerUser(String userId, KeyStore keyStore, String keyStorePass); @Override Client httpClientForUser(String userId, ServiceName serviceName); @Override Client httpClientForSessionToken(String sessionToken, ServiceName serviceName);  }