src/LightSaml/Model/Metadata/RoleDescriptor.php
public function getAllKeyDescriptorsByUse($use)
    {
        $result = array();
        foreach ($this->getAllKeyDescriptors() as $kd) {
            if ($kd->getUse() == $use) {
                $result[] = $kd;
            }
        }

        return $result;
    }
public function getAllKeyDescriptorsByUse($use)
    {
        $result = array();
        foreach ($this->getAllKeyDescriptors() as $kd) {
            if ($kd->getUse() == $use) {
                $result[] = $kd;
            }
        }

        return $result;
    }
@param string $use

@return KeyDescriptor[]