org.littleshoot.proxy.extras
Class SelfSignedSslEngineSource

java.lang.Object
  extended by org.littleshoot.proxy.extras.SelfSignedSslEngineSource
All Implemented Interfaces:
SslEngineSource

public class SelfSignedSslEngineSource
extends Object
implements SslEngineSource

Basic SslEngineSource for testing. The SSLContext uses self-signed certificates that are generated lazily if the given key store file doesn't yet exist.


Constructor Summary
SelfSignedSslEngineSource()
           
SelfSignedSslEngineSource(boolean trustAllServers)
           
SelfSignedSslEngineSource(boolean trustAllServers, boolean sendCerts)
           
SelfSignedSslEngineSource(String keyStorePath)
           
SelfSignedSslEngineSource(String keyStorePath, boolean trustAllServers, boolean sendCerts)
           
 
Method Summary
 SSLContext getSslContext()
           
 SSLEngine newSslEngine()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelfSignedSslEngineSource

public SelfSignedSslEngineSource(String keyStorePath,
                                 boolean trustAllServers,
                                 boolean sendCerts)

SelfSignedSslEngineSource

public SelfSignedSslEngineSource(String keyStorePath)

SelfSignedSslEngineSource

public SelfSignedSslEngineSource(boolean trustAllServers)

SelfSignedSslEngineSource

public SelfSignedSslEngineSource(boolean trustAllServers,
                                 boolean sendCerts)

SelfSignedSslEngineSource

public SelfSignedSslEngineSource()
Method Detail

newSslEngine

public SSLEngine newSslEngine()
Specified by:
newSslEngine in interface SslEngineSource

getSslContext

public SSLContext getSslContext()


Copyright © 2009-2014 LittleShoot. All Rights Reserved.