Class SslContextFactory
- java.lang.Object
-
- org.opendaylight.openflowjava.protocol.impl.core.SslContextFactory
-
public class SslContextFactory extends Object
Class for setting up TLS connection.- Author:
- michal.polkorab
-
-
Constructor Summary
Constructors Constructor Description SslContextFactory(TlsConfiguration tlsConfig)
Sets the TlsConfiguration.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SSLContext
getServerContext()
X509Certificate
getSwitchCertificate()
boolean
isCustomTrustManagerEnabled()
static void
setIsCustomTrustManagerEnabled(boolean customTrustManagerEnabled)
static void
setSwitchCertificate(X509Certificate certificate)
-
-
-
Constructor Detail
-
SslContextFactory
public SslContextFactory(TlsConfiguration tlsConfig)
Sets the TlsConfiguration.- Parameters:
tlsConfig
- TLS configuration object, contains keystore locations + keystore types
-
-
Method Detail
-
getSwitchCertificate
public X509Certificate getSwitchCertificate()
-
isCustomTrustManagerEnabled
public boolean isCustomTrustManagerEnabled()
-
setSwitchCertificate
public static void setSwitchCertificate(X509Certificate certificate)
-
setIsCustomTrustManagerEnabled
public static void setIsCustomTrustManagerEnabled(boolean customTrustManagerEnabled)
-
getServerContext
public SSLContext getServerContext()
-
-