. */ namespace SP\Domain\Crypt\Ports; use Defuse\Crypto\Key; use SP\Core\Crypt\UUIDCookie; use SP\Domain\Common\Services\ServiceException; /** * Class SecureSessionService * * @package SP\Domain\Crypt\Services */ interface SecureSessionServiceInterface { /** * Returns an unique filename from a browser cookie * * @throws ServiceException */ public static function getFileNameFrom(UUIDCookie $cookie, string $seed): string; /** * Returns the encryption key * * * @return Key|false */ public function getKey(): Key|bool; }