nextcloud/lib/unstable/Federation/ISignedCloudFederationProvider.php
Maxence Lange 327d691c23 feat(signed-request): moving out of unstable
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2026-01-09 20:16:24 -01:00

35 lines
972 B
PHP

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace NCU\Federation;
use OCP\Federation\ICloudFederationProvider;
/**
* Interface ICloudFederationProvider
*
* Enable apps to create their own cloud federation provider
*
* @experimental 31.0.0
* @deprecated 33.0.0 use {@see \OCP\Federation\ISignedCloudFederationProvider}
*/
interface ISignedCloudFederationProvider extends ICloudFederationProvider {
/**
* returns federationId in direct relation (as recipient or as author) of a sharedSecret
* the federationId must be the one at the remote end
*
* @param string $sharedSecret
* @param array $payload
*
* @experimental 31.0.0
* @deprecated 33.0.0 use {@see \OCP\Federation\ISignedCloudFederationProvider}
* @return string
*/
public function getFederationIdFromSharedSecret(string $sharedSecret, array $payload): string;
}