@Test public void testGetJwtTokenEmpty() { JwtPayload result = jwtAuthentication.getJwtToken(MOCK_CONFIG_ID, StringUtils.EMPTY); assertNull(result); }
public JwtPayload getJwtToken(String configurationId, String authorizationHeader) { if (StringUtils.isNotEmpty(authorizationHeader) && authorizationHeader.toUpperCase().startsWith(AUTHORIZATION_HEADER_PREFIX)) { String jwt = authorizationHeader.substring(AUTHORIZATION_HEADER_PREFIX.length()); return parseJwtPayload(configurationId, jwt); } return null; }
JwtAuthenticationImpl implements JwtAuthentication { public JwtPayload getJwtToken(String configurationId, String authorizationHeader) { if (StringUtils.isNotEmpty(authorizationHeader) && authorizationHeader.toUpperCase().startsWith(AUTHORIZATION_HEADER_PREFIX)) { String jwt = authorizationHeader.substring(AUTHORIZATION_HEADER_PREFIX.length()); return parseJwtPayload(configurationId, jwt); } return null; } }
JwtAuthenticationImpl implements JwtAuthentication { public JwtPayload getJwtToken(String configurationId, String authorizationHeader) { if (StringUtils.isNotEmpty(authorizationHeader) && authorizationHeader.toUpperCase().startsWith(AUTHORIZATION_HEADER_PREFIX)) { String jwt = authorizationHeader.substring(AUTHORIZATION_HEADER_PREFIX.length()); return parseJwtPayload(configurationId, jwt); } return null; }  }
JwtAuthenticationImpl implements JwtAuthentication { public JwtPayload getJwtToken(String configurationId, String authorizationHeader) { if (StringUtils.isNotEmpty(authorizationHeader) && authorizationHeader.toUpperCase().startsWith(AUTHORIZATION_HEADER_PREFIX)) { String jwt = authorizationHeader.substring(AUTHORIZATION_HEADER_PREFIX.length()); return parseJwtPayload(configurationId, jwt); } return null; }  @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 JwtPayload getJwtToken(String configurationId, String authorizationHeader) { if (StringUtils.isNotEmpty(authorizationHeader) && authorizationHeader.toUpperCase().startsWith(AUTHORIZATION_HEADER_PREFIX)) { String jwt = authorizationHeader.substring(AUTHORIZATION_HEADER_PREFIX.length()); return parseJwtPayload(configurationId, jwt); } return null; }  @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);  }