Laravel AT Protocol Client (alpha & unstable)
at main 515 B view raw
1<?php 2 3namespace SocialDept\AtpClient\Contracts; 4 5use SocialDept\AtpClient\Data\DPoPKey; 6 7interface KeyStore 8{ 9 /** 10 * Store DPoP key for session 11 */ 12 public function store(string $sessionId, DPoPKey $key): void; 13 14 /** 15 * Retrieve DPoP key 16 */ 17 public function get(string $sessionId): ?DPoPKey; 18 19 /** 20 * Delete DPoP key 21 */ 22 public function delete(string $sessionId): void; 23 24 /** 25 * Check if key exists 26 */ 27 public function exists(string $sessionId): bool; 28}