public static function extractPublicKeys(
        CertificateProvider $config,
        string $usage = null,
        bool $required = false
    ) : KeyCollection {
        $keyLoader = new self();

        return $keyLoader->loadKeysFromConfiguration($config, $usage, $required);
    }