@Override
    public final Credential getCredential() {
        try {
            val cs = new CriteriaSet();
            Criterion criteria = new EntityIdCriterion(this.privateKeyAlias);
            cs.add(criteria);
            return this.credentialResolver.resolveSingle(cs);
        } catch (final ResolverException e) {
            throw new SAMLException("Can't obtain SP private key", e);
        }
    }
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