Issue-ID: SDC-2962
Signed-off-by: ilanap <ilanap@amdocs.com>
Change-Id: I9d88031c7d20951a4a77138340b1ddc26f47c0b6
Signed-off-by: ilanap <ilanap@amdocs.com>
(cherry picked from commit
5facedd4291181fb2668ea3e945687c04fe62cb1)
public static class JettySslConfig {
Properties sslProperties;
static final String JETTY_BASE = System.getenv("JETTY_BASE");
public static class JettySslConfig {
Properties sslProperties;
static final String JETTY_BASE = System.getenv("JETTY_BASE");
+ static final String KEY_STORE_TYPE_PROPERTY_NAME="jetty.sslContext.keyStoreType";
+ static final String TRUST_STORE_TYPE_PROPERTY_NAME="jetty.sslContext.trustStoreType";
JettySslConfig(Properties sslProperties) {
this.sslProperties = sslProperties;
}
JettySslConfig(Properties sslProperties) {
this.sslProperties = sslProperties;
}
}
public String getKeystoreType() {
}
public String getKeystoreType() {
- return sslProperties.getProperty("jetty.sslContext.keyStoreType");
+ return sslProperties.getProperty(KEY_STORE_TYPE_PROPERTY_NAME, KeyStore.getDefaultType());
}
public String getTruststorePath() {
}
public String getTruststorePath() {
}
public String getTruststoreType() {
}
public String getTruststoreType() {
- return sslProperties.getProperty("jetty.sslContext.trustStoreType");
+ return sslProperties.getProperty(TRUST_STORE_TYPE_PROPERTY_NAME, KeyStore.getDefaultType());
}
public String getKeyStoreManager() {
}
public String getKeyStoreManager() {