public class SSLConfig extends Object
isSSLMode()
is false.setUseSSL(boolean)
Constructor and Description |
---|
SSLConfig(boolean useSSL,
boolean clientAuth,
String keyStore,
String keyStorePassword,
String trustStore,
String trustStorePassword)
NOTE: all other settings are ignored if useSSL is false; trustStore settings are ignored if clientAuth is false
|
Modifier and Type | Method and Description |
---|---|
org.eclipse.jetty.util.ssl.SslContextFactory |
createContextFactory()
Returns an SslContextFactory that should be used by a jetty server based on this SSLConfig instance,
or null if SSL should not be used.
|
static org.eclipse.jetty.util.ssl.SslContextFactory |
createContextFactory(SSLConfig sslConfig)
Returns an SslContextFactory that should be used by a jetty server based on the specified
SSLConfig param which may be null.
|
String |
getKeyStore() |
String |
getKeyStorePassword() |
String |
getTrustStore() |
String |
getTrustStorePassword() |
boolean |
isClientAuthMode() |
boolean |
isSSLMode()
All other settings on this object are ignored unless this is true
|
void |
setClientAuth(boolean clientAuth) |
void |
setUseSSL(boolean useSSL) |
public void setUseSSL(boolean useSSL)
public void setClientAuth(boolean clientAuth)
public boolean isSSLMode()
public boolean isClientAuthMode()
public String getKeyStore()
public String getKeyStorePassword()
public String getTrustStore()
public String getTrustStorePassword()
public static org.eclipse.jetty.util.ssl.SslContextFactory createContextFactory(SSLConfig sslConfig)
createContextFactory()
.
If the SSLConfig param is null, then this method will return null unless the
tests.jettySsl
system property is true, in which case standard "javax.net.ssl.*"
system properties will be used instead, along with "tests.jettySsl.clientAuth".createContextFactory()
public org.eclipse.jetty.util.ssl.SslContextFactory createContextFactory()
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.