@Override
    public final KeyInfoGenerator getKeyInfoGenerator() {
        val mgmr = DefaultSecurityConfigurationBootstrap.buildBasicKeyInfoGeneratorManager();
        val credential = getCredential();
        return Objects.requireNonNull(mgmr.getDefaultManager().getFactory(credential)).newInstance();
    }
Class responsible for loading a private key from a JKS keystore and returning
the corresponding {@link Credential} opensaml object.

@author Misagh Moayyed
@since 1.8.0
pac4j-saml/src/main/java/org/pac4j/saml/crypto/KeyStoreCredentialProvider.java