AuthorizationCredential
Interface
Interface AuthorizationCredential.
Description
Represents the structured credential extracted from an HTTP
Authorization header. Implementations of this interface MUST model the
specific authentication scheme used by the client, such as API Key,
Basic, Bearer, Digest, or AWS Signature Version 4.
Types implementing this interface SHALL be returned by the Authorization::parse() and related helper methods. They MUST encapsulate all information necessary for downstream authentication logic to validate the user agent.
This interface does not enforce any specific methods, but implementors SHOULD expose immutable, well-typed public properties or accessors to represent authentication values in a safe and structured form.