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

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

        return $keyLoader->loadKeysFromConfiguration($config, $usage, $required);
    }
public static function extractPublicKeys ( CertificateProvider $ config , string $ usage = null , bool $ required = false ) : KeyCollection { $ keyLoader = new self ( ) ; return $ keyLoader -> loadKeysFromConfiguration ( $ config , $ usage , $ required ) ; }
Extracts the public keys given by the configuration. Mainly exists for BC purposes.
Prioritisation order is keys > certData > certificate

@param \SAML2\Configuration\CertificateProvider $config
@param string|null                              $usage
@param bool                                     $required
@return \SAML2\Certificate\KeyCollection
Extracts the public keys given by the configuration . Mainly exists for BC purposes . Prioritisation order is keys > certData > certificate