Issue #3564 Allow for un-authenicated WFS HTTPS connections.
Change-Id: Ib144a570b2206b336aac0b9e8ebc00c9f096775a Former-commit-id:82fd7189b9
[formerly 7afe5332fcf41bbc8bb2411944584405f3ba686a] Former-commit-id:9c3b002990
This commit is contained in:
parent
f7e39c9d6f
commit
534b784843
1 changed files with 2 additions and 1 deletions
|
@ -36,6 +36,7 @@ import com.raytheon.uf.common.status.UFStatus.Priority;
|
|||
* Aug 06, 2013 2097 dhladky WFS 2.0 compliance upgrade and switched to POST
|
||||
* Nov 20, 2013 2554 dhladky Added GZIP capability to WFS requests.
|
||||
* Jan 13, 2014 2697 dhladky Added util to strip unique Id field from URL.
|
||||
* Aub 20, 2014 3564 dhladky Allow for un-authenicated HTTPS
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -80,6 +81,7 @@ public class WfsConnectionUtil {
|
|||
ProviderCredentials creds = ProviderCredentialsUtil
|
||||
.retrieveCredentials(providerName);
|
||||
Connection localConnection = creds.getConnection();
|
||||
http.setHttpsConfiguration(new WfsHttpsConfiguration(uri));
|
||||
|
||||
if (localConnection != null
|
||||
&& localConnection.getProviderKey() != null) {
|
||||
|
@ -91,7 +93,6 @@ public class WfsConnectionUtil {
|
|||
String password = localConnection.getUnencryptedPassword();
|
||||
|
||||
http.setHandler(new WfsCredentialsHandler(userName, password));
|
||||
http.setHttpsConfiguration(new WfsHttpsConfiguration(uri));
|
||||
http.setCredentials(uri.getHost(), uri.getPort(), providerName,
|
||||
userName, password);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue