Class CustomSSLTrustContextCreator

java.lang.Object
com.vmware.vim25.ws.CustomSSLTrustContextCreator

public class CustomSSLTrustContextCreator extends Object
  • Constructor Details

    • CustomSSLTrustContextCreator

      public CustomSSLTrustContextCreator()
  • Method Details

    • getTrustContext

      public static SSLContext getTrustContext(TrustManager trustManager) throws RemoteException
      Creates or returns a cached SSLContext initialised with the supplied TrustManager.
      Parameters:
      trustManager - the trust manager to install in the SSL context
      Returns:
      the (possibly cached) SSLContext
      Throws:
      RemoteException - if the TLS algorithm or key management is unavailable
    • setContextAlreadyCreated

      public static void setContextAlreadyCreated(boolean alreadyCreated)
      Sets the contextAlreadyCreated boolean used to determine whether a new ssl context should be initialized or not. Exposed as public for unit testability.
      Parameters:
      alreadyCreated -