public class

SSLConfig

extends Object
java.lang.Object
   ↳ org.ocast.core.SSLConfig

Class Overview

Define specific rules regarding SSL configuration for your device connections

Summary

Public Constructors
SSLConfig(X509TrustManager trustManager, SSLSocketFactory socketFactory, HostnameVerifier hostnameVerifier)
Configuration that will be used by the underlying Link to setup SSL
Public Methods
HostnameVerifier getHostnameVerifier()
Return the custom HostnameVerifier
SSLSocketFactory getSocketFactory()
Return the configured SocketFactory
X509TrustManager getTrustManager()
Return the configured TrustManager
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public SSLConfig (X509TrustManager trustManager, SSLSocketFactory socketFactory, HostnameVerifier hostnameVerifier)

Configuration that will be used by the underlying Link to setup SSL

Parameters
trustManager a TrustManager instance that suits your needs
socketFactory a SocketFactory instance that suits your needs
hostnameVerifier a custom hostname verifier

Public Methods

public HostnameVerifier getHostnameVerifier ()

Return the custom HostnameVerifier

public SSLSocketFactory getSocketFactory ()

Return the configured SocketFactory

public X509TrustManager getTrustManager ()

Return the configured TrustManager