Package com.castlabs.android.utils

# Class SslUtils

java.lang.Object
com.castlabs.android.utils.SslUtils

public class SslUtils extends Object
Utility class for SSL related operations.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static SSLSocketFactory`
  `getSslSocketFactory(PlayerController playerController)`
  Unified way to get `SSLSocketFactory`.

  ### Methods inherited from class java.lang.Object

  `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### getSslSocketFactory

    @Nullable public static SSLSocketFactory getSslSocketFactory(@Nullable PlayerController playerController)
    Unified way to get `SSLSocketFactory`. It checks if an `SSLSocketFactory` is set on the `PlayerController` or globally via `PlayerSDK.SSL_KEY_STORE`.
    Parameters:
      `playerController` - `PlayerController` if known and `null` otherwise
    Returns:
      `SSLSocketFactory` or `null` when unknown