62 lines
1.1 KiB
PHP
62 lines
1.1 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
/**
|
|
* SPDX-FileCopyrightText: Sebastian Krupinski <krupinski01@gmail.com>
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
|
|
namespace KTXF\Resource\Provider;
|
|
|
|
/**
|
|
* Resource Service Identity Basic
|
|
*
|
|
* Basic authentication (username/password) credentials for resource services.
|
|
*
|
|
* @since 2025.05.01
|
|
*/
|
|
interface ResourceServiceIdentityBasic extends ResourceServiceIdentityInterface {
|
|
|
|
/**
|
|
* Gets the identity/username
|
|
*
|
|
* @since 2025.05.01
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getIdentity(): string;
|
|
|
|
/**
|
|
* Sets the identity/username
|
|
*
|
|
* @since 2025.05.01
|
|
*
|
|
* @param string $value
|
|
*
|
|
* @return void
|
|
*/
|
|
public function setIdentity(string $value): void;
|
|
|
|
/**
|
|
* Gets the secret/password
|
|
*
|
|
* @since 2025.05.01
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getSecret(): string;
|
|
|
|
/**
|
|
* Sets the secret/password
|
|
*
|
|
* @since 2025.05.01
|
|
*
|
|
* @param string $value
|
|
*
|
|
* @return void
|
|
*/
|
|
public function setSecret(string $value): void;
|
|
|
|
}
|