chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r915857 - /incubator/chemistry/trunk/opencmis/opencmis-client/opencmis-provider-impl/src/main/java/org/apache/opencmis/client/provider/factory/CmisProviderFactory.java
Date Wed, 24 Feb 2010 16:38:08 GMT
Author: fmui
Date: Wed Feb 24 16:38:07 2010
New Revision: 915857

URL: http://svn.apache.org/viewvc?rev=915857&view=rev
Log:
- allow custom authentication providers in createCmisAtomPubProvider and createCmisWebServicesProvider

Modified:
    incubator/chemistry/trunk/opencmis/opencmis-client/opencmis-provider-impl/src/main/java/org/apache/opencmis/client/provider/factory/CmisProviderFactory.java

Modified: incubator/chemistry/trunk/opencmis/opencmis-client/opencmis-provider-impl/src/main/java/org/apache/opencmis/client/provider/factory/CmisProviderFactory.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/trunk/opencmis/opencmis-client/opencmis-provider-impl/src/main/java/org/apache/opencmis/client/provider/factory/CmisProviderFactory.java?rev=915857&r1=915856&r2=915857&view=diff
==============================================================================
--- incubator/chemistry/trunk/opencmis/opencmis-client/opencmis-provider-impl/src/main/java/org/apache/opencmis/client/provider/factory/CmisProviderFactory.java
(original)
+++ incubator/chemistry/trunk/opencmis/opencmis-client/opencmis-provider-impl/src/main/java/org/apache/opencmis/client/provider/factory/CmisProviderFactory.java
Wed Feb 24 16:38:07 2010
@@ -96,8 +96,10 @@
     checkSessionParameters(sessionParameters, false);
 
     sessionParameters.put(SessionParameter.BINDING_SPI_CLASS, BINDING_SPI_ATOMPUB);
-    sessionParameters.put(SessionParameter.AUTHENTICATION_PROVIDER_CLASS,
-        STANDARD_AUTHENTICATION_PROVIDER);
+    if (!sessionParameters.containsKey(SessionParameter.AUTHENTICATION_PROVIDER_CLASS)) {
+      sessionParameters.put(SessionParameter.AUTHENTICATION_PROVIDER_CLASS,
+          STANDARD_AUTHENTICATION_PROVIDER);
+    }
     sessionParameters.put(SessionParameter.AUTH_HTTP_BASIC, "true");
     sessionParameters.put(SessionParameter.AUTH_SOAP_USERNAMETOKEN, "false");
     addDefaultParameters(sessionParameters);
@@ -114,8 +116,10 @@
     checkSessionParameters(sessionParameters, false);
 
     sessionParameters.put(SessionParameter.BINDING_SPI_CLASS, BINDING_SPI_WEBSERVICES);
-    sessionParameters.put(SessionParameter.AUTHENTICATION_PROVIDER_CLASS,
-        STANDARD_AUTHENTICATION_PROVIDER);
+    if (!sessionParameters.containsKey(SessionParameter.AUTHENTICATION_PROVIDER_CLASS)) {
+      sessionParameters.put(SessionParameter.AUTHENTICATION_PROVIDER_CLASS,
+          STANDARD_AUTHENTICATION_PROVIDER);
+    }
     sessionParameters.put(SessionParameter.AUTH_HTTP_BASIC, "true");
     sessionParameters.put(SessionParameter.AUTH_SOAP_USERNAMETOKEN, "true");
     addDefaultParameters(sessionParameters);



Mime
View raw message