Make Saml2Client.retrieveCredentials public so that it can be accessed