public String generateJWE(String data, String jwksUri) {
        JWEHeader header = new JWEHeader(JWEAlgorithm.RSA_OAEP, EncryptionMethod.A256GCM);
        JWEObject jwsObject = new JWEObject(header, new Payload(data));
        logger.debug("jwt data: {}", data);

        try {
            var publicEncryptionKey = getPublicEncryptionKey(jwksUri);
            jwsObject.encrypt(new RSAEncrypter(publicEncryptionKey));
        } catch (JOSEException | IOException | ParseException e) {
            return null;
        }

        return jwsObject.serialize();
    }
@Test
    void generateJWETest() {
        //given
        //when
        provider.generateJWE("data", "jwskUri");
        //then
    }