WwwAuthenticate

scamper.http.auth.WwwAuthenticate
final class WwwAuthenticate(response: HttpResponse) extends AnyVal

Adds standardized access to WWW-Authenticate header.

Attributes

Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Value members

Concrete methods

Gets basic authentication.

Gets basic authentication.

Attributes

Throws
HttpException

if basic authentication is not present

Gets basic authentication if present.

Gets basic authentication if present.

Attributes

Gets bearer authentication.

Gets bearer authentication.

Attributes

Throws
HttpException

if bearer authentication is not present

Gets bearer authentication if present.

Gets bearer authentication if present.

Attributes

def hasBasic: Boolean

Tests for basic authentication.

Tests for basic authentication.

Attributes

def hasBearer: Boolean

Tests for bearer authentication.

Tests for bearer authentication.

Attributes

def hasWwwAuthenticate: Boolean

Tests for WWW-Authenticate header.

Tests for WWW-Authenticate header.

Attributes

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

Creates new response with basic authentication.

Creates new response with basic authentication.

Attributes

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

Creates new response with basic authentication.

Creates new response with basic authentication.

Attributes

Creates new response with basic authentication.

Creates new response with basic authentication.

Attributes

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

Creates new response with bearer authentication.

Creates new response with bearer authentication.

Attributes

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

Creates new response with bearer authentication.

Creates new response with bearer authentication.

Attributes

Creates new response with bearer authentication.

Creates new response with bearer authentication.

Attributes

Creates new response with WWW-Authenticate header set to supplied values.

Creates new response with WWW-Authenticate header set to supplied values.

Attributes

Creates new response with WWW-Authenticate header set to supplied values.

Creates new response with WWW-Authenticate header set to supplied values.

Attributes

Gets WWW-Authenticate header values.

Gets WWW-Authenticate header values.

Attributes

Returns

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

def wwwAuthenticateOption: Option[Seq[Challenge]]

Gets WWW-Authenticate header values if present.

Gets WWW-Authenticate header values if present.

Attributes

Creates new response with WWW-Authenticate header removed.

Creates new response with WWW-Authenticate header removed.

Attributes