public class SelfSignedSslEngineSource extends Object implements SslEngineSource
SslEngineSource for testing. The SSLContext uses
self-signed certificates that are generated lazily if the given key store
file doesn't yet exist.| Constructor and Description |
|---|
SelfSignedSslEngineSource() |
SelfSignedSslEngineSource(boolean trustAllServers) |
SelfSignedSslEngineSource(boolean trustAllServers,
boolean sendCerts) |
SelfSignedSslEngineSource(String keyStorePath) |
SelfSignedSslEngineSource(String keyStorePath,
boolean trustAllServers,
boolean sendCerts) |
| Modifier and Type | Method and Description |
|---|---|
SSLContext |
getSslContext() |
SSLEngine |
newSslEngine()
Returns an
SSLEngine to use for a server connection from
LittleProxy to the client. |
SSLEngine |
newSslEngine(String peerHost,
int peerPort)
Returns an
SSLEngine to use for a client connection from
LittleProxy to the upstream server. |
public SelfSignedSslEngineSource(String keyStorePath, boolean trustAllServers, boolean sendCerts)
public SelfSignedSslEngineSource(String keyStorePath)
public SelfSignedSslEngineSource(boolean trustAllServers)
public SelfSignedSslEngineSource(boolean trustAllServers,
boolean sendCerts)
public SelfSignedSslEngineSource()
public SSLEngine newSslEngine()
SslEngineSourceSSLEngine to use for a server connection from
LittleProxy to the client.newSslEngine in interface SslEngineSourcepublic SSLEngine newSslEngine(String peerHost, int peerPort)
SslEngineSourceSSLEngine to use for a client connection from
LittleProxy to the upstream server. *
Note: Peer information is needed to send the server_name extension in
handshake with Server Name Indication (SNI).newSslEngine in interface SslEngineSourcepeerHost - to start a client connection to the server.peerPort - to start a client connection to the server.public SSLContext getSslContext()
Copyright © 2009–2016 LittleShoot. All rights reserved.