SWS-815 - Error loading SAML properties file

This commit is contained in:
Arjen Poutsma
2012-12-05 09:29:34 +00:00
parent b5e59427cd
commit e014fbf55b

View File

@@ -26,7 +26,6 @@ import javax.security.auth.callback.CallbackHandler;
import javax.security.auth.callback.UnsupportedCallbackException;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.core.io.Resource;
import org.springframework.util.Assert;
import org.springframework.util.CollectionUtils;
import org.springframework.util.StringUtils;
@@ -471,11 +470,10 @@ public class Wss4jSecurityInterceptor extends AbstractWsSecurityInterceptor impl
}
/**
* Sets the location of the SAML properties file.
* Sets the location of the SAML properties file. The file should be available on the classpath.
*/
public void setSamlProperties(Resource location) throws IOException {
Assert.isTrue(location.exists(), "SAML properties file [ " + location + "] does not exist");
handler.setOption(WSHandlerConstants.SAML_PROP_FILE, location.getFile().getAbsolutePath());
public void setSamlProperties(String location) {
handler.setOption(WSHandlerConstants.SAML_PROP_FILE, location);
}
public void afterPropertiesSet() throws Exception {