[CXF-5944] Moving some of code from the jwt package to the jose package