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
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
Link copied to clipboard
you can set here and in basicAuthPassword the credentials for a BASIC HTTP authentication.
Link copied to clipboard
you can set here and in basicAuthLogin the credentials for a BASIC HTTP authentication.
Link copied to clipboard
type of the certificate used for ssl authentication, set in either certificatePath or resCertificate
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.
Link copied to clipboard
The HttpSender.Method to be used when posting with uri.
Link copied to clipboard
A custom class supplying a java.security.KeyStore, which will be used for ssl authentication. A base implementation is available: org.acra.security.BaseKeyStoreFactory
Link copied to clipboard
Link copied to clipboard