-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: SebastianKrupinski <[email protected]>
- Loading branch information
1 parent
7c1ac06
commit 9c14d79
Showing
12 changed files
with
416 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
/** | ||
* @copyright Copyright (c) 2023 Sebastian Krupinski <[email protected]> | ||
* | ||
* @author Sebastian Krupinski <[email protected]> | ||
* | ||
* @license AGPL-3.0-or-later | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as | ||
* published by the Free Software Foundation, either version 3 of the | ||
* License, or (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Affero General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
* | ||
*/ | ||
namespace OCA\JMAPC\Providers; | ||
|
||
/** | ||
* This is the interface that is implemented by apps that | ||
* implement a mail provider | ||
* | ||
* @since 30.0.0 | ||
*/ | ||
interface IServiceIdentity { | ||
|
||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
/** | ||
* @copyright Copyright (c) 2023 Sebastian Krupinski <[email protected]> | ||
* | ||
* @author Sebastian Krupinski <[email protected]> | ||
* | ||
* @license AGPL-3.0-or-later | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as | ||
* published by the Free Software Foundation, either version 3 of the | ||
* License, or (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Affero General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
* | ||
*/ | ||
namespace OCA\JMAPC\Providers; | ||
|
||
/** | ||
* This is the interface that is implemented by apps that | ||
* implement a mail provider | ||
* | ||
* @since 30.0.0 | ||
*/ | ||
interface IServiceIdentityBAuth extends IServiceIdentity { | ||
|
||
/** | ||
* | ||
* @since 30.0.0 | ||
*/ | ||
public function getIdentity(): string; | ||
|
||
/** | ||
* | ||
* @since 30.0.0 | ||
*/ | ||
public function setIdentity(string $value); | ||
|
||
/** | ||
* | ||
* @since 30.0.0 | ||
*/ | ||
public function getSecret(): string; | ||
|
||
/** | ||
* | ||
* @since 30.0.0 | ||
*/ | ||
public function setSecret(string $value); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
/** | ||
* @copyright Copyright (c) 2023 Sebastian Krupinski <[email protected]> | ||
* | ||
* @author Sebastian Krupinski <[email protected]> | ||
* | ||
* @license AGPL-3.0-or-later | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as | ||
* published by the Free Software Foundation, either version 3 of the | ||
* License, or (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Affero General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
* | ||
*/ | ||
namespace OCA\JMAPC\Providers; | ||
|
||
/** | ||
* This is the interface that is implemented by apps that | ||
* implement a mail provider | ||
* | ||
* @since 30.0.0 | ||
*/ | ||
interface IServiceIdentityOAuth extends IServiceIdentity { | ||
|
||
/** | ||
* | ||
* @since 30.0.0 | ||
*/ | ||
public function getAccessToken(): string; | ||
|
||
/** | ||
* | ||
* @since 30.0.0 | ||
*/ | ||
public function setAccessToken(string $value); | ||
|
||
/** | ||
* | ||
* @since 30.0.0 | ||
*/ | ||
public function getAccessScope(): array; | ||
|
||
/** | ||
* | ||
* @since 30.0.0 | ||
*/ | ||
public function setAccessScope(array $value); | ||
|
||
/** | ||
* | ||
* @since 30.0.0 | ||
*/ | ||
public function getAccessExpiry(): int; | ||
|
||
/** | ||
* | ||
* @since 30.0.0 | ||
*/ | ||
public function setAccessExpiry(int $value); | ||
|
||
/** | ||
* | ||
* @since 30.0.0 | ||
*/ | ||
public function getRefreshToken(): string; | ||
|
||
/** | ||
* | ||
* @since 30.0.0 | ||
*/ | ||
public function setRefreshToken(string $value); | ||
|
||
/** | ||
* | ||
* @since 30.0.0 | ||
*/ | ||
public function getRefreshLocation(): string; | ||
|
||
/** | ||
* | ||
* @since 30.0.0 | ||
*/ | ||
public function setRefreshLocation(string $value); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
/** | ||
* @copyright Copyright (c) 2023 Sebastian Krupinski <[email protected]> | ||
* | ||
* @author Sebastian Krupinski <[email protected]> | ||
* | ||
* @license AGPL-3.0-or-later | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as | ||
* published by the Free Software Foundation, either version 3 of the | ||
* License, or (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Affero General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
* | ||
*/ | ||
namespace OCA\JMAPC\Providers; | ||
|
||
/** | ||
* This is the interface that is implemented by apps that | ||
* implement a mail provider | ||
* | ||
* @since 30.0.0 | ||
*/ | ||
interface IServiceLocation { | ||
|
||
/** | ||
* | ||
* @since 30.0.0 | ||
*/ | ||
public function type(): string; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
/** | ||
* @copyright Copyright (c) 2023 Sebastian Krupinski <[email protected]> | ||
* | ||
* @author Sebastian Krupinski <[email protected]> | ||
* | ||
* @license AGPL-3.0-or-later | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as | ||
* published by the Free Software Foundation, either version 3 of the | ||
* License, or (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Affero General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
* | ||
*/ | ||
namespace OCA\JMAPC\Providers; | ||
|
||
/** | ||
* This is the interface that is implemented by apps that | ||
* implement a mail provider | ||
* | ||
* @since 30.0.0 | ||
*/ | ||
interface IServiceLocationUri extends IServiceLocation { | ||
|
||
/** | ||
* | ||
* @since 30.0.0 | ||
*/ | ||
public function location(): string; | ||
|
||
/** | ||
* | ||
* @since 30.0.0 | ||
*/ | ||
public function getScheme(): string; | ||
|
||
/** | ||
* | ||
* @since 30.0.0 | ||
*/ | ||
public function setScheme(string $value); | ||
|
||
/** | ||
* | ||
* @since 30.0.0 | ||
*/ | ||
public function getHost(): string; | ||
|
||
/** | ||
* | ||
* @since 30.0.0 | ||
*/ | ||
public function setHost(string $value); | ||
|
||
/** | ||
* | ||
* @since 30.0.0 | ||
*/ | ||
public function getPort(): int; | ||
|
||
/** | ||
* | ||
* @since 30.0.0 | ||
*/ | ||
public function setPort(int $value); | ||
|
||
/** | ||
* | ||
* @since 30.0.0 | ||
*/ | ||
public function getPath(): string; | ||
|
||
/** | ||
* | ||
* @since 30.0.0 | ||
*/ | ||
public function setPath(string $value); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.