WwwAuthenticate

final implicit
class WwwAuthenticate(response: HttpResponse) extends AnyVal

Provides standardized access to WWW-Authenticate header.

class AnyVal
trait Matchable
class Any

Value members

Concrete methods

Gets basic authentication.

Gets basic authentication.

Throws
HttpException

if basic authentication is not present

Gets bearer authentication.

Gets bearer authentication.

Throws
HttpException

if bearer authentication is not present

Gets basic authentication if present.

Gets basic authentication if present.

Gets bearer authentication if present.

Gets bearer authentication if present.

def getWwwAuthenticate: Option[Seq[Challenge]]

Gets WWW-Authenticate header values if present.

Gets WWW-Authenticate header values if present.

def hasBasic: Boolean

Tests for basic authentication.

Tests for basic authentication.

def hasBearer: Boolean

Tests for bearer authentication.

Tests for bearer authentication.

def hasWwwAuthenticate: Boolean

Tests for WWW-Authenticate header.

Tests for WWW-Authenticate header.

Creates new response removing WWW-Authenticate header.

Creates new response removing WWW-Authenticate header.

def setBasic(realm: String, params: Map[String, String]): HttpResponse

Creates new response with basic authentication.

Creates new response with basic authentication.

def setBasic(realm: String, params: (String, String)*): HttpResponse

Creates new response with basic authentication.

Creates new response with basic authentication.

Creates new response with basic authentication.

Creates new response with basic authentication.

def setBearer(params: Map[String, String]): HttpResponse

Creates new response with bearer authentication.

Creates new response with bearer authentication.

def setBearer(params: (String, String)*): HttpResponse

Creates new response with bearer authentication.

Creates new response with bearer authentication.

Creates new response with bearer authentication.

Creates new response with bearer authentication.

Creates new response setting WWW-Authenticate header to supplied values.

Creates new response setting WWW-Authenticate header to supplied values.

Creates new response setting WWW-Authenticate header to supplied values.

Creates new response setting WWW-Authenticate header to supplied values.

Gets WWW-Authenticate header values.

Gets WWW-Authenticate header values.

Returns

header values or empty sequence if WWW-Authenticate is not present