SessionAuthenticator

SessionAuthenticator class is an authenticator that will authenticate by using the session ID of the session created by a Sync Gateway

Constructors

Link copied to clipboard
expect constructor(sessionID: String)

Initializes with the Sync Gateway session ID and uses the default cookie name.

expect constructor(sessionID: String, cookieName: String?)

Initializes with the session ID and the cookie name. If the given cookieName is null, the default cookie name will be used.

actual constructor(sessionID: String)
actual constructor(sessionID: String, cookieName: String?)
actual constructor(sessionID: String)
actual constructor(sessionID: String, cookieName: String?)

Properties

Link copied to clipboard
expect val cookieName: String

Session cookie name that the session ID value will be set to when communicating the Sync Gateway.

actual val cookieName: String
actual val cookieName: String
Link copied to clipboard
expect val sessionID: String

Session ID of the session created by a Sync Gateway.

actual val sessionID: String
actual val sessionID: 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