*
* @param supportsSignatures indicates if the authenticator supports signatures or not.
* @return
*/
private ServiceProviderAuthenticator createSPAuthenticator(boolean supportsSignatures) throws Exception {
ServiceProviderAuthenticator spAuthenticator = new ServiceProviderAuthenticator();
SPType spType = new SPType();
spType.setBindingType("POST");
spType.setIdentityURL("http://localhost/idp");
spType.setSupportsSignature(supportsSignatures);
spType.setServiceURL("http://localhost/sp");
spAuthenticator.setConfigProvider(new MockSAMLConfigurationProvider(spType));
spAuthenticator.setContainer(this.spContext);
spAuthenticator.testStart();
return spAuthenticator;
}