You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by GitBox <gi...@apache.org> on 2022/07/20 14:01:46 UTC

[GitHub] [knox] smolnar82 commented on a diff in pull request #605: KNOX-2772 - add configuration for jetty renegotiation

smolnar82 commented on code in PR #605:
URL: https://github.com/apache/knox/pull/605#discussion_r925644227


##########
gateway-server/src/main/java/org/apache/knox/gateway/config/impl/GatewayConfigImpl.java:
##########
@@ -592,6 +593,11 @@ public List<String> getExcludedSSLCiphers() {
     return list;
   }
 
+  @Override
+  public boolean getRenegotiation() {

Review Comment:
   Please give a better name for this method. It does not reflect SSL. Recommended: `isSSLRenegotiationAllowed`.
   Thanks!



##########
gateway-server/src/main/java/org/apache/knox/gateway/config/impl/GatewayConfigImpl.java:
##########
@@ -592,6 +593,11 @@ public List<String> getExcludedSSLCiphers() {
     return list;
   }
 
+  @Override
+  public boolean getRenegotiation() {
+    return Boolean.parseBoolean(get( SSL_RENEGOTIATION, "false" ));

Review Comment:
   We already have a `getBoolean(String name, boolean default)` method. Please use it.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@knox.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org