Package com.vmware.vim25.ws
Class CustomSSLTrustContextCreator
java.lang.Object
com.vmware.vim25.ws.CustomSSLTrustContextCreator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SSLContextgetTrustContext(TrustManager trustManager) Creates or returns a cachedSSLContextinitialised with the suppliedTrustManager.static voidsetContextAlreadyCreated(boolean alreadyCreated) Sets the contextAlreadyCreated boolean used to determine whether a new ssl context should be initialized or not.
-
Constructor Details
-
CustomSSLTrustContextCreator
public CustomSSLTrustContextCreator()
-
-
Method Details
-
getTrustContext
Creates or returns a cachedSSLContextinitialised with the suppliedTrustManager.- 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-
-