<?php
namespace Fifa\ConnectServiceBus\Sdk\Encryption\Decrypt;
use Fifa\ConnectServiceBus\Sdk\Exception\CryptographyException;
use Fifa\ConnectServiceBus\Sdk\Message\Message;

/**
 * Interface MessageDecryptionServiceInterface
 * @package Fifa\ConnectServiceBus\Sdk\Encryption\Decrypt
 */
interface MessageDecryptionServiceInterface
{
    /**
     * Decrypts given string
     *
     * @param Message $message - Service Bus message with encrypted content
     * @return string
     * @throws CryptographyException
     */
    public function decrypt(Message $message): string;
}