Skip to content

Commit e014fbf

Browse files
committed
SWS-815 - Error loading SAML properties file
1 parent b5e5942 commit e014fbf

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

security/src/main/java/org/springframework/ws/soap/security/wss4j/Wss4jSecurityInterceptor.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
import javax.security.auth.callback.UnsupportedCallbackException;
2727

2828
import org.springframework.beans.factory.InitializingBean;
29-
import org.springframework.core.io.Resource;
3029
import org.springframework.util.Assert;
3130
import org.springframework.util.CollectionUtils;
3231
import org.springframework.util.StringUtils;
@@ -471,11 +470,10 @@ public void setBspCompliant(boolean bspCompliant) {
471470
}
472471

473472
/**
474-
* Sets the location of the SAML properties file.
473+
* Sets the location of the SAML properties file. The file should be available on the classpath.
475474
*/
476-
public void setSamlProperties(Resource location) throws IOException {
477-
Assert.isTrue(location.exists(), "SAML properties file [ " + location + "] does not exist");
478-
handler.setOption(WSHandlerConstants.SAML_PROP_FILE, location.getFile().getAbsolutePath());
475+
public void setSamlProperties(String location) {
476+
handler.setOption(WSHandlerConstants.SAML_PROP_FILE, location);
479477
}
480478

481479
public void afterPropertiesSet() throws Exception {

0 commit comments

Comments
 (0)