public abstract class Platform
extends java.lang.Object
Constructor and Description |
---|
Platform() |
Modifier and Type | Method and Description |
---|---|
abstract java.util.concurrent.Executor |
callbackExecutor()
Return an executor for this platform.
|
static Platform |
get() |
abstract java.lang.String |
name()
How do you call this platform?
|
abstract boolean |
needsCustomTLSSocketFactory()
Does this platform need to overwrite the default TLS socket factory to provide TLS1.2
|
abstract java.lang.String |
version()
Which version of the platform is executing this app?
|
public static Platform get()
public abstract java.util.concurrent.Executor callbackExecutor()
public abstract java.lang.String name()
Valid values are "Windows", "Linux", "Mac OS" and "Android".
public abstract java.lang.String version()
public abstract boolean needsCustomTLSSocketFactory()
The servers Contentful uses are enforcing usage of TLS 1.2. Some platforms (Android 4.x) are having TLS1.2 implemented but are not enabling it as a default. This check finds these situations and recommends overwriting the default TLSSocketFactory.
This recommendation can be overruled by using
CDAClient.Builder.setTls12Implementation(com.contentful.java.cda.Tls12Implementation)
.
Copyright © 2019 Contentful, GmbH.. All Rights Reserved.