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.Client | createClientContextFactory() | 
| org.eclipse.jetty.util.ssl.SslContextFactory.Server | createContextFactory()Returns an SslContextFactory.Server 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.Server | createContextFactory(SSLConfig sslConfig)Returns an SslContextFactory.Server 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.Server 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.Server createContextFactory()
public org.eclipse.jetty.util.ssl.SslContextFactory.Client createClientContextFactory()
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.