protected void initSAMLLogoutResponseValidator(final boolean forceReinit) {
        if (logoutValidator == null || forceReinit) {
            this.logoutValidator = new SAML2LogoutValidator(this.signatureTrustEngineProvider,
                this.decrypter, findSessionLogoutHandler(),
                this.replayCache, this.configuration.getUriComparator());
            this.logoutValidator.setAcceptedSkew(this.configuration.getAcceptedSkew());
            this.logoutValidator.setPartialLogoutTreatedAsSuccess(this.configuration.isPartialLogoutTreatedAsSuccess());
        }
    }
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