net.grinder.common
Interface SSLContextFactory

All Known Subinterfaces:
SSLControl
All Known Implementing Classes:
InsecureSSLContextFactory

public interface SSLContextFactory

Factory for SSLContexts.

Author:
Philip Aston

Nested Class Summary
static class SSLContextFactory.SSLContextFactoryException
          Exception that indicates problem creating an SSLContext.
 
Method Summary
 SSLContext getSSLContext()
          Returns an appropriate JSSE SSLContext.
 

Method Detail

getSSLContext

SSLContext getSSLContext()
                         throws SSLContextFactory.SSLContextFactoryException
Returns an appropriate JSSE SSLContext. This can be used to obtain an SSLSocketFactory.

The Grinder optimises client SSL processing to increase the number of simultaneous client threads it is reasonable to run. It uses an insecure source of random information, and does not perform checks on the certificates presented by a server. Do not use The Grinder to implement any SSL communication that you want to be secure.

Returns:
The SSL context.
Throws:
SSLContextFactory.SSLContextFactoryException - If the SSLContext could not be found/created.
See Also:
SSLControl


Copyright © 2000-2013. All Rights Reserved.