mirror of https://github.com/apache/nifi.git
NIFI-5753 Make use of keyPassword optional and only used when keystore is used, bump registry client version
This closes #3126.
This commit is contained in:
parent
5d65e6aba4
commit
af81afce40
|
@ -28,7 +28,7 @@ limitations under the License.
|
|||
<artifactId>nifi-hwx-schema-registry-service</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
<properties>
|
||||
<hwx.registry.version>0.5.3</hwx.registry.version>
|
||||
<hwx.registry.version>0.8.0</hwx.registry.version>
|
||||
</properties>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
|
|
|
@ -142,11 +142,13 @@ public class HortonworksSchemaRegistry extends AbstractControllerService impleme
|
|||
ImmutableMap.Builder<String, String> propertiesBuilder = ImmutableMap.builder();
|
||||
if (sslContextService != null) {
|
||||
propertiesBuilder.put("protocol", sslContextService.getSslAlgorithm());
|
||||
propertiesBuilder.put("keyPassword", sslContextService.getKeyPassword());
|
||||
if (sslContextService.isKeyStoreConfigured()) {
|
||||
propertiesBuilder.put("keyStorePath", sslContextService.getKeyStoreFile());
|
||||
propertiesBuilder.put("keyStorePassword", sslContextService.getKeyStorePassword());
|
||||
propertiesBuilder.put("keyStoreType", sslContextService.getKeyStoreType());
|
||||
if (sslContextService.getKeyPassword() != null) {
|
||||
propertiesBuilder.put("keyPassword", sslContextService.getKeyPassword());
|
||||
}
|
||||
}
|
||||
if (sslContextService.isTrustStoreConfigured()) {
|
||||
propertiesBuilder.put("trustStorePath", sslContextService.getTrustStoreFile());
|
||||
|
|
Loading…
Reference in New Issue