summaryrefslogtreecommitdiff
path: root/libs/jsonrpc/src/JsonRPC/MiddlewareInterface.php
blob: ab55261dc435758a29e986f12b9fc735c3e10f65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php

namespace JsonRPC;

use JsonRPC\Exception\AccessDeniedException;
use JsonRPC\Exception\AuthenticationFailureException;

/**
 * Interface MiddlewareInterface
 *
 * @package JsonRPC
 * @author  Frederic Guillot
 */
interface MiddlewareInterface
{
    /**
     * Execute Middleware
     *
     * @access public
     * @param  string $username
     * @param  string $password
     * @param  string $procedureName
     * @throws AccessDeniedException
     * @throws AuthenticationFailureException
     */
    public function execute($username, $password, $procedureName);
}