<BUG>int rc = conn.sendSignedRequest(keyChangeUri, outerClaim, getSession());if (rc != HttpURLConnection.HTTP_OK) {conn.throwAcmeException();}</BUG><CONTEXT>ClaimBuilder outerClaim = new ClaimBuilder();outerClaim.putResource(Resource.KEY_CHANGE); // Let's Encrypt needs the resource hereouterClaim.put("protected", innerJws.getHeaders().getEncodedHeader());outerClaim.put("signature", innerJws.getEncodedSignature());outerClaim.put("payload", innerJws.getEncodedPayload());<extra_id_0>getSession().setKeyPair(newKeyPair);</CONTEXT>
conn.accept(HttpURLConnection.HTTP_OK);