exceptionfactory commented on code in PR #6931:
URL: https://github.com/apache/nifi/pull/6931#discussion_r1101974752
##########
nifi-registry/nifi-registry-core/nifi-registry-properties/src/main/java/org/apache/nifi/registry/properties/NiFiRegistryProperties.java:
##########
@@ -479,4 +482,23 @@ public String getOidcClaimIdentifyingUser() {
return getProperty(SECURITY_USER_OIDC_CLAIM_IDENTIFYING_USER,
"email").trim();
}
+ /**
+ * Returns the network interface list to use for HTTPS. This method
returns a mapping of
+ * network interface property names to network interface names.
+ *
+ * @return the network interface names of all HTTPS network interfaces
+ */
+ public Set<String> getHttpsNetworkInterfaceNames() {
+ final Set<String> networkInterfaceNames = new HashSet<>();
+
+ // go through each property
+ for (String propertyName : getPropertyKeys()) {
+ // determine if the property is a network interface name
+ if (StringUtils.startsWith(propertyName,
WEB_HTTPS_NETWORK_INTERFACE_PREFIX)) {
+ // get the network interface property value
+ networkInterfaceNames.add(getProperty(propertyName));
Review Comment:
This can add an empty value to `networkInterfaceNames`, so this should be
adjusted to filter out empty values.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]