Issue #901 - defaulting trustStoreType to keyStoreType if unspecified
This commit is contained in:
parent
2eca7492dd
commit
ef65f083b8
|
@ -665,16 +665,16 @@ public class SslContextFactory extends AbstractLifeCycle implements Dumpable
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return The type of the trust store (default "JKS")
|
* @return The type of the trust store (defaults to type of the key store if unspecified)
|
||||||
*/
|
*/
|
||||||
@ManagedAttribute("The trustStore type")
|
@ManagedAttribute("The trustStore type")
|
||||||
public String getTrustStoreType()
|
public String getTrustStoreType()
|
||||||
{
|
{
|
||||||
return _trustStoreType;
|
return _trustStoreType != null ? _trustStoreType : _keyStoreType;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param trustStoreType The type of the trust store (default "JKS")
|
* @param trustStoreType The type of the trust store
|
||||||
*/
|
*/
|
||||||
public void setTrustStoreType(String trustStoreType)
|
public void setTrustStoreType(String trustStoreType)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue