AuthDomainImpl

class AuthDomainImpl(pointer: <Error class: unknown class><<Error class: unknown class>>) : AuthDomain

The AuthDomainImpl type represents a native instance of the abstract AuthDomain class.

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Creates a new instance of AuthDomain for the provided CPointer.

Properties

Link copied to clipboard
open val realm: String

The realm of this auth domain.

Link copied to clipboard
val soupAuthDomainPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard
open fun accepts(msg: ServerMessage): String?

Checks if @msg contains appropriate authorization for @domain to accept it.

Link copied to clipboard
open fun addPath(path: String)

Adds @path to @domain.

Link copied to clipboard
open fun challenge(msg: ServerMessage)

Adds a "WWW-Authenticate" or "Proxy-Authenticate" header to @msg.

Link copied to clipboard
open fun checkPassword(msg: ServerMessage, username: String, password: String): Boolean

Checks if @msg authenticates to @domain via @username and

Link copied to clipboard
open fun covers(msg: ServerMessage): Boolean

Checks if @domain requires @msg to be authenticated (according to its paths and filter function).

Link copied to clipboard
open fun removePath(path: String)

Removes @path from @domain.

Link copied to clipboard
open fun setFilter(filter: AuthDomainFilter)

Adds @filter as an authentication filter to @domain.

Link copied to clipboard

Sets @auth_callback as an authentication-handling callback for @domain.