protected void initSAMLResponseValidator(final boolean forceReinit) {
        // Build the SAML response validator
        if (authnResponseValidator == null || forceReinit) {
            this.authnResponseValidator = new SAML2AuthnResponseValidator(
                this.signatureTrustEngineProvider,
                this.decrypter,
                this.replayCache,
                this.configuration,
                findSessionLogoutHandler());
            this.authnResponseValidator.setAcceptedSkew(this.configuration.getAcceptedSkew());
        }
    }
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