BasicAuthenticator

expect class BasicAuthenticator(username: String, password: CharArray) : Authenticator(source)

The BasicAuthenticator class is an authenticator that will authenticate using HTTP Basic auth with the given username and password. This should only be used over an SSL/TLS connection, as otherwise it's very easy for anyone sniffing network traffic to read the password.

actual class BasicAuthenticator(username: String, password: CharArray) : Authenticator(source)
actual class BasicAuthenticator(val username: String, password: CharArray) : Authenticator(source)

Constructors

Link copied to clipboard
expect constructor(username: String, password: CharArray)
actual constructor(username: String, password: CharArray)
actual constructor(username: String, password: CharArray)

Properties

Link copied to clipboard

Get the password. The returned char[] is a copy: the owner is responsible for zeroing it before releasing it.

Link copied to clipboard
expect val username: String
actual val username: String
actual val username: String

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String