@Test public void testGetUserIdFromAuthorizationHeader() { doReturn(mockPublicKey).when(rsaKeyUtils).getPublicKeyFromCertificate(null); String authorizationHeader = AUTHORIZATION_HEADER_PREFIX.concat(mockJwt); Long userId = jwtAuthentication.getUserIdFromAuthorizationHeader(MOCK_CONFIG_ID, authorizationHeader); assertEquals(USER_ID, userId); }
public Long getUserIdFromAuthorizationHeader(String configurationId, String authorizationHeader) { JwtPayload token = getJwtToken(configurationId, authorizationHeader); return getUserId(token); }
JwtAuthenticationImpl implements JwtAuthentication { public Long getUserIdFromAuthorizationHeader(String configurationId, String authorizationHeader) { JwtPayload token = getJwtToken(configurationId, authorizationHeader); return getUserId(token); } }
JwtAuthenticationImpl implements JwtAuthentication { public Long getUserIdFromAuthorizationHeader(String configurationId, String authorizationHeader) { JwtPayload token = getJwtToken(configurationId, authorizationHeader); return getUserId(token); }  }
JwtAuthenticationImpl implements JwtAuthentication { public Long getUserIdFromAuthorizationHeader(String configurationId, String authorizationHeader) { JwtPayload token = getJwtToken(configurationId, authorizationHeader); return getUserId(token); }  @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 { public Long getUserIdFromAuthorizationHeader(String configurationId, String authorizationHeader) { JwtPayload token = getJwtToken(configurationId, authorizationHeader); return getUserId(token); }  @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);  }