protected void initSAMLContextProvider(final boolean forceReinit) {
        if (this.contextProvider == null || forceReinit) {
            this.contextProvider = new SAML2ContextProvider(this.identityProviderMetadataResolver, this.serviceProviderMetadataResolver,
                this.configuration.getSamlMessageStoreFactory());
        }
    }
This class is the client to authenticate and logout users with a SAML2 Identity Provider.

@author Michael Remond
@author Misagh Moayyed
@author Ruochao Zheng
@author Jerome Leleu
@since 1.5.0
pac4j-saml/src/main/java/org/pac4j/saml/client/SAML2Client.java