aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/bshaffer/oauth2-server-php/src/OAuth2/Storage/PublicKeyInterface.php
blob: a6dc49fb54272ed9b14a227d449658f1949296ef (plain) (blame)
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
28
29
30
<?php

namespace OAuth2\Storage;

/**
 * Implement this interface to specify where the OAuth2 Server
 * should get public/private key information
 *
 * @author Brent Shaffer <bshafs at gmail dot com>
 */
interface PublicKeyInterface
{
    /**
     * @param mixed $client_id
     * @return mixed
     */
    public function getPublicKey($client_id = null);

    /**
     * @param mixed $client_id
     * @return mixed
     */
    public function getPrivateKey($client_id = null);

    /**
     * @param mixed $client_id
     * @return mixed
     */
    public function getEncryptionAlgorithm($client_id = null);
}