The SSLContextBuilder#setKeyStoreType method is called twice, with the KeyStoreType property and with the TrustStoreType property. The later overriding the value of the former, if both are defined. FYI: The SSLContextBuilder class does not have an equivalent setTrustStoreType method.
|
if (properties.getKeyStoreType() != null) { |
|
builder.setKeyStoreType(properties.getKeyStoreType()); |
|
} |
|
if (properties.getTrustStoreType() != null) { |
|
builder.setKeyStoreType(properties.getTrustStoreType()); |
|
} |