1 /*
2 This file is part of the talbotgui/psl project.
3 Authors: talbotgui.
4
5 This program is offered under a commercial and under the AGPL license.
6 For commercial licensing, contact me at talbotgui@gmail.com.
7 For AGPL licensing, see below.
8
9 AGPL licensing:
10 This program is free software: you can redistribute it and/or modify
11 it under the terms of the GNU Affero General Public License as published by
12 the Free Software Foundation, either version 3 of the License, or
13 (at your option) any later version.
14
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU Affero General Public License for more details.
19
20 AGPL license is available in LICENSE.md file and https://www.gnu.org/licenses/#AGPL
21 */
22 package com.github.talbotgui.psl.socle.securite.client;
23
24 import com.github.talbotgui.psl.socle.securite.client.dto.InformationSpCompteDto;
25 import com.github.talbotgui.psl.socle.securite.client.dto.InformationSpUsagerDto;
26
27 public interface SpClient {
28
29 /**
30 * Chargement des données du compte (type et fournisseur OIDC) depuis l'API OIDC.
31 *
32 * @param clientId
33 * @param clientSecret
34 * @param accessTokenOIDC L'accessToken à utiliser.
35 * @return Les informations du compte.
36 */
37 InformationSpCompteDto chargerDonneesCompte(String clientId, String clientSecret, String accessTokenOIDC);
38
39 /**
40 * Chargement des données de l'usager connecté depuis l'API OIDC.
41 *
42 * @param clientId
43 * @param clientSecret
44 * @param accessTokenOIDC L'accessToken à utiliser.
45 * @return Les informations de l'usager.
46 */
47 InformationSpUsagerDto chargerDonneesPersonnelles(String clientId, String clientSecret, String accessTokenOIDC);
48
49 }