public class MWSSLDefaultConfig extends java.lang.Object implements MWSSLConfig
MWSSLConfig
interface. This is used while creating an instance
of MWHttpClient
when there is no user defined implementation of MWSSLConfig
interface.Constructor and Description |
---|
MWSSLDefaultConfig() |
Modifier and Type | Method and Description |
---|---|
javax.net.ssl.HostnameVerifier |
getHostnameVerifier()
Returns the default implementation of
HostnameVerifier interface. |
MWSSLServerAuthorizer |
getServerAuthorizer()
Returns the default implementation for extra level of server authorization.
|
javax.net.ssl.SSLContext |
getSSLContext()
Returns the default
SSLContext obtained by the call to
SSLContext.getDefault() |
public javax.net.ssl.SSLContext getSSLContext()
SSLContext
obtained by the call to
SSLContext.getDefault()
getSSLContext
in interface MWSSLConfig
SSLContext
public javax.net.ssl.HostnameVerifier getHostnameVerifier()
HostnameVerifier
interface. The default implementation
of the verify
method of this interface returns false
. As a result this will not
allow the connection to continue if the default HTTPS
host name verification fails.getHostnameVerifier
in interface MWSSLConfig
HostnameVerifier
public MWSSLServerAuthorizer getServerAuthorizer()
getServerAuthorizer
in interface MWSSLConfig
Copyright 2010-2013 The MathWorks, Inc.