Http Sender Configuration
class HttpSenderConfiguration(enabled: Boolean, uri: String, basicAuthLogin: String?, basicAuthPassword: String?, httpMethod: HttpSender.Method, connectionTimeout: Int, socketTimeout: Int, dropReportsOnTimeout: Boolean, keyStoreFactoryClass: Class<out KeyStoreFactory>, certificatePath: String?, @RawRes() resCertificate: Int?, certificateType: String, compress: Boolean, tlsProtocols: List<TLS>, httpHeaders: Map<String, String>) : Configuration
Content copied to clipboard
Http sender configuration
Author
F43nd1r
Since
01.06.2017
Constructors
HttpSenderConfiguration
Link copied to clipboard
fun HttpSenderConfiguration(enabled: Boolean = true, uri: String, basicAuthLogin: String? = null, basicAuthPassword: String? = null, httpMethod: HttpSender.Method = HttpSender.Method.POST, connectionTimeout: Int = 5000, socketTimeout: Int = 20000, dropReportsOnTimeout: Boolean = false, keyStoreFactoryClass: Class<out KeyStoreFactory> = NoKeyStoreFactory::class.java, certificatePath: String? = null, @RawRes() resCertificate: Int? = null, certificateType: String = "X.509", compress: Boolean = false, tlsProtocols: List<TLS> = listOf(TLS.V1_3, TLS.V1_2, TLS.V1_1, TLS.V1), httpHeaders: Map<String, String> = emptyMap())
Content copied to clipboard
Functions
Properties
basicAuthLogin
Link copied to clipboard
you can set here and in basicAuthPassword the credentials for a BASIC HTTP authentication.
basicAuthPassword
Link copied to clipboard
you can set here and in basicAuthLogin the credentials for a BASIC HTTP authentication.
certificatePath
Link copied to clipboard
certificateType
Link copied to clipboard
type of the certificate used for ssl authentication, set in either certificatePath or resCertificate
connectionTimeout
Link copied to clipboard
dropReportsOnTimeout
Link copied to clipboard
httpHeaders
Link copied to clipboard
custom HTTP headers to be sent by the provided org.acra.sender.HttpSender This should be used also by third party senders.
httpMethod
Link copied to clipboard
keyStoreFactoryClass
Link copied to clipboard
A custom class supplying a java.security.KeyStore, which will be used for ssl authentication.
resCertificate
Link copied to clipboard
socketTimeout
Link copied to clipboard
tlsProtocols
Link copied to clipboard