Builder

class Builder

This builder should be use to create a HomeServerConnectionConfig instance.

Constructors

Link copied to clipboard
fun Builder()

Functions

Link copied to clipboard
fun addAcceptedTlsCipherSuite(tlsCipherSuite: CipherSuite): HomeServerConnectionConfig.Builder

Add a TLS cipher suite to the list of accepted TLS connections with the homeserver.

Link copied to clipboard
fun addAcceptedTlsVersion(tlsVersion: TlsVersion): HomeServerConnectionConfig.Builder

Add an accepted TLS version for TLS connections with the homeserver.

Link copied to clipboard
fun build(): HomeServerConnectionConfig
Link copied to clipboard
fun forceUsageOfTlsVersions(forceUsageOfTlsVersions: Boolean): HomeServerConnectionConfig.Builder

Force the usage of TlsVersion. This can be usefull for device on Android version < 20

Link copied to clipboard
fun withAllowedFingerPrints(allowedFingerprints: List<Fingerprint>?): HomeServerConnectionConfig.Builder
Link copied to clipboard
fun withAllowHttpConnection(allowHttpExtension: Boolean): HomeServerConnectionConfig.Builder
Link copied to clipboard
fun withAntiVirusServerUri(antivirusServerUri: Uri?): HomeServerConnectionConfig.Builder

Update the anti-virus server URI.

fun withAntiVirusServerUri(antivirusServerUriString: String?): HomeServerConnectionConfig.Builder
Link copied to clipboard
fun withHomeServerUri(hsUri: Uri): HomeServerConnectionConfig.Builder
fun withHomeServerUri(hsUriString: String): HomeServerConnectionConfig.Builder
Link copied to clipboard
fun withIdentityServerUri(identityServerUri: Uri): HomeServerConnectionConfig.Builder
fun withIdentityServerUri(identityServerUriString: String): HomeServerConnectionConfig.Builder
Link copied to clipboard
fun withPin(pin: Boolean): HomeServerConnectionConfig.Builder
Link copied to clipboard
fun withShouldAcceptTlsExtensions(shouldAcceptTlsExtension: Boolean): HomeServerConnectionConfig.Builder
Link copied to clipboard
fun withTlsLimitations(tlsLimitations: Boolean, enableCompatibilityMode: Boolean): HomeServerConnectionConfig.Builder

Convenient method to limit the TLS versions and cipher suites for this Builder Ref: