Airship\Engine\Continuum\Supplier::reloadSigningKeys PHP Method

reloadSigningKeys() public method

Reload the signing keys
public reloadSigningKeys ( array $data = [] ) : self
$data array
return self
    public function reloadSigningKeys(array $data = []) : self
    {
        if (empty($data)) {
            $data = \Airship\loadJSON(ROOT . '/config/supplier_keys/' . $this->name . '.json');
        }
        if (isset($data['signing_keys'])) {
            $keys = [];
            foreach ($data['signing_keys'] as $sk) {
                $keys[] = ['type' => $sk['type'], 'key' => new SignaturePublicKey(\Sodium\hex2bin($sk['public_key']))];
            }
            $this->signing_keys = $keys;
        }
        return $this;
    }