Config

class Config

A configuration for the digest authentication provider.

Properties

Link copied to clipboard

A message digest algorithm to be used. Usually only MD5 is supported by clients.

Link copied to clipboard

NonceManager to be used to generate nonce values.

Link copied to clipboard

Specifies a realm to be passed in the WWW-Authenticate header.

Functions

Link copied to clipboard

Configures a digest provider function that should fetch or compute message digest for the specified userName and realm. A message digest is usually computed based on username, realm and password concatenated with the colon character ':'. For example, "$userName:$realm:$password".

Link copied to clipboard
fun validate(body: <Error class: unknown class><DigestCredential>)

Sets a validation function that checks a specified DigestCredential instance and returns principal Any in a case of successful authentication or null if authentication fails.