File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
security/src/main/java/org/springframework/ws/soap/security/wss4j Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 26
26
import javax .security .auth .callback .UnsupportedCallbackException ;
27
27
28
28
import org .springframework .beans .factory .InitializingBean ;
29
- import org .springframework .core .io .Resource ;
30
29
import org .springframework .util .Assert ;
31
30
import org .springframework .util .CollectionUtils ;
32
31
import org .springframework .util .StringUtils ;
@@ -471,11 +470,10 @@ public void setBspCompliant(boolean bspCompliant) {
471
470
}
472
471
473
472
/**
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.
475
474
*/
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 );
479
477
}
480
478
481
479
public void afterPropertiesSet () throws Exception {
You can’t perform that action at this time.
0 commit comments