class BasicCredentialData extends TokenCredentialData (View source)

Basic authentication scheme user-password credential data

Methods

string
getTokenValue()

Base64 token credential data

__construct(string $token68)

No description

__toString()

No description

setTokenValue($token68)

No description

string
getUser()

No description

string
getPassword()

No description

setUserPassword(string $user, string $password)

No description

static string[]
parseUserPassword(string $token68)

No description

Details

string getTokenValue()

Base64 token credential data

Return Value

string

__construct(string $token68)

Parameters

string $token68 Token68 string from Authorization header value.

__toString()

setTokenValue($token68)

Parameters

$token68

string getUser()

Return Value

string

string getPassword()

Return Value

string

setUserPassword(string $user, string $password)

Parameters

string $user
string $password

static string[] parseUserPassword(string $token68)

Parameters

string $token68 Token68 string from Authorization header value

Return Value

string[] Decoded user and password

Exceptions

InvalidHeaderException