Jose\Object\StorableJWKSet::createNewObject PHP Method

createNewObject() protected method

This method creates the JWKSet and populate it with keys.
protected createNewObject ( )
    protected function createNewObject()
    {
        $jwkset = new JWKSet();
        for ($i = 0; $i < $this->nb_keys; $i++) {
            $key = $this->createJWK();
            $jwkset->addKey($key);
        }
        return $jwkset;
    }