| 1: | <?php declare(strict_types=1); |
| 2: | |
| 3: | namespace Salient\Contract\Http; |
| 4: | |
| 5: | /** |
| 6: | * @api |
| 7: | */ |
| 8: | interface CredentialInterface |
| 9: | { |
| 10: | /** |
| 11: | * Get the authentication scheme of the credential, e.g. "Basic", "Digest" |
| 12: | * or "Bearer" |
| 13: | */ |
| 14: | public function getAuthenticationScheme(): string; |
| 15: | |
| 16: | /** |
| 17: | * Get the credential, e.g. a Base64-encoded user ID/password pair, a |
| 18: | * comma-delimited list of authorization parameters or an OAuth 2.0 access |
| 19: | * token |
| 20: | */ |
| 21: | public function getCredential(): string; |
| 22: | } |
| 23: |