class AuthorizationHeaderValue implements HeaderValueInterface (View source)

Authorization HTTP header value.

Methods

createFromString(string $text)

No description

__construct(string $scheme = AuthenticationScheme::BASIC, string|array $data = null)

No description

__toString()

{@inheritdoc}

boolean
isScheme(string $scheme)

No description

string
getScheme()

No description

Details

static AuthorizationHeaderValue createFromString(string $text)

Parameters

string $text

Return Value

AuthorizationHeaderValue

Exceptions

InvalidHeaderException

__construct(string $scheme = AuthenticationScheme::BASIC, string|array $data = null)

Parameters

string $scheme Authentication scheme
string|array $data Deserialized credential data

__toString()

{@inheritdoc}

See also

\NoreSources\StringRepresentation::__toString()

boolean isScheme(string $scheme)

Parameters

string $scheme Authentication scheme

Return Value

boolean

string getScheme()

Return Value

string

CredentialDataInterface getCredentialData()