uriBuilder.addParameter("request", jwt.serialize());
out.write(encrypted.serialize());
uriBuilder.addParameter("request", jwt.serialize());
out.write(encrypted.serialize());
throw new RuntimeException("Failed to generate encrypted token", e); return jwt.serialize(); } else { RSAPrivateKeyHolder privateKey = keyProvider.getPrivateKey();
return encryptedJwt.serialize(); } catch (final JOSEException | ParseException e) { throw new TechnicalException(e);
throw new KrbException("Failed to encrypt the encrypted JWT", e); tokenStr = encryptedJWT.serialize();
throw new KrbException("Failed to encrypt the encrypted JWT", e); tokenStr = encryptedJWT.serialize();