| 1 | <?php  | 
            ||
| 18 | final class JWKSets implements JWKSetInterface  | 
            ||
| 19 | { | 
            ||
| 20 | use BaseJWKSet;  | 
            ||
| 21 | |||
| 22 | /**  | 
            ||
| 23 | * @var \Jose\Object\JWKSetInterface[]  | 
            ||
| 24 | */  | 
            ||
| 25 | private $jwksets = [];  | 
            ||
| 26 | |||
| 27 | /**  | 
            ||
| 28 | * JWKSets constructor.  | 
            ||
| 29 | *  | 
            ||
| 30 | * @param \Jose\Object\JWKSetInterface[] $jwksets  | 
            ||
| 31 | */  | 
            ||
| 32 | public function __construct(array $jwksets)  | 
            ||
| 38 | |||
| 39 | /**  | 
            ||
| 40 | * PublicJWKSet constructor.  | 
            ||
| 41 | *  | 
            ||
| 42 | * @param \Jose\Object\JWKSetInterface $jwkset  | 
            ||
| 43 | */  | 
            ||
| 44 | public function addKeySet(JWKSetInterface $jwkset)  | 
            ||
| 48 | |||
| 49 | /**  | 
            ||
| 50 | * @inheritdoc  | 
            ||
| 51 | */  | 
            ||
| 52 | public function getKeys()  | 
            ||
| 65 | |||
| 66 | /**  | 
            ||
| 67 | * @inheritdoc  | 
            ||
| 68 | */  | 
            ||
| 69 | public function addKey(JWKInterface $key)  | 
            ||
| 73 | |||
| 74 | /**  | 
            ||
| 75 | * @inheritdoc  | 
            ||
| 76 | */  | 
            ||
| 77 | public function removeKey($index)  | 
            ||
| 81 | }  | 
            ||
| 82 |