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

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