Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2
3declare(strict_types=1);
4
5/**
6 * This file is part of php-fast-forward/http-message.
7 *
8 * This source file is subject to the license bundled
9 * with this source code in the file LICENSE.
10 *
11 * @link      https://github.com/php-fast-forward/http-message
12 * @copyright Copyright (c) 2025 Felipe SayĆ£o Lobato Abreu <github@mentordosnerds.com>
13 * @license   https://opensource.org/licenses/MIT MIT License
14 */
15
16namespace FastForward\Http\Message\Header\Authorization;
17
18/**
19 * Interface AuthorizationCredential.
20 *
21 * Represents the structured credential extracted from an HTTP
22 * `Authorization` header. Implementations of this interface MUST model the
23 * specific authentication scheme used by the client, such as API Key,
24 * Basic, Bearer, Digest, or AWS Signature Version 4.
25 *
26 * Types implementing this interface SHALL be returned by the
27 * {@see FastForward\Http\Message\Header\Authorization::parse()} and related
28 * helper methods. They MUST encapsulate all information necessary for
29 * downstream authentication logic to validate the user agent.
30 *
31 * This interface does not enforce any specific methods, but implementors
32 * SHOULD expose immutable, well-typed public properties or accessors to
33 * represent authentication values in a safe and structured form.
34 */
35interface AuthorizationCredential {}