@Test public void testInit() { jwtAuthentication.init(); Object apiClientObj = ReflectionTestUtils.getField(jwtAuthentication, "apiClient"); assertTrue(apiClientObj instanceof IntegrationAuthApiClient); Object cacheObj = ReflectionTestUtils.getField(jwtAuthentication, "podPublicSignatureVerifierCache"); assertTrue(cacheObj instanceof LoadingCache); LoadingCache cache = (LoadingCache) cacheObj; assertEquals(0, cache.size()); }
@PostConstruct public void init() { this.apiClient = new IntegrationAuthApiClient(integrationHttpApiClient, logMessage); this.podInfoClient = new PodInfoClient(symphonyHttpApiClient, logMessage); initializeCache(properties.getPublicPodCertificateCacheDuration()); }
JwtAuthenticationImpl implements JwtAuthentication { @PostConstruct public void init() { this.apiClient = new IntegrationAuthApiClient(integrationHttpApiClient, logMessage); this.podInfoClient = new PodInfoClient(symphonyHttpApiClient, logMessage); initializeCache(properties.getPublicPodCertificateCacheDuration()); } }
JwtAuthenticationImpl implements JwtAuthentication { @PostConstruct public void init() { this.apiClient = new IntegrationAuthApiClient(integrationHttpApiClient, logMessage); this.podInfoClient = new PodInfoClient(symphonyHttpApiClient, logMessage); initializeCache(properties.getPublicPodCertificateCacheDuration()); }  }
JwtAuthenticationImpl implements JwtAuthentication { @PostConstruct public void init() { this.apiClient = new IntegrationAuthApiClient(integrationHttpApiClient, logMessage); this.podInfoClient = new PodInfoClient(symphonyHttpApiClient, logMessage); initializeCache(properties.getPublicPodCertificateCacheDuration()); }  @PostConstruct void init(); Long getUserIdFromAuthorizationHeader(String configurationId, String authorizationHeader); JwtPayload getJwtToken(String configurationId, String authorizationHeader); Long getUserId(JwtPayload token); String authenticate(String configurationId); boolean isValidTokenPair(String configurationId, String applicationToken,
      String symphonyToken); JwtPayload parseJwtPayload(String configurationId, String jwt); @Override boolean checkPodInfo(String configurationId, String podId); }
JwtAuthenticationImpl implements JwtAuthentication { @PostConstruct public void init() { this.apiClient = new IntegrationAuthApiClient(integrationHttpApiClient, logMessage); this.podInfoClient = new PodInfoClient(symphonyHttpApiClient, logMessage); initializeCache(properties.getPublicPodCertificateCacheDuration()); }  @PostConstruct void init(); Long getUserIdFromAuthorizationHeader(String configurationId, String authorizationHeader); JwtPayload getJwtToken(String configurationId, String authorizationHeader); Long getUserId(JwtPayload token); String authenticate(String configurationId); boolean isValidTokenPair(String configurationId, String applicationToken,
      String symphonyToken); JwtPayload parseJwtPayload(String configurationId, String jwt); @Override boolean checkPodInfo(String configurationId, String podId);  }