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