chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1815007 - /chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/webservices/UsernameTokenInterceptor.java
Date Sun, 12 Nov 2017 12:02:57 GMT
Author: fmui
Date: Sun Nov 12 12:02:57 2017
New Revision: 1815007

URL: http://svn.apache.org/viewvc?rev=1815007&view=rev
Log:
CMIS-1047: implemented getUnderstoodHeaders() method

Modified:
    chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/webservices/UsernameTokenInterceptor.java

Modified: chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/webservices/UsernameTokenInterceptor.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/webservices/UsernameTokenInterceptor.java?rev=1815007&r1=1815006&r2=1815007&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/webservices/UsernameTokenInterceptor.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/java/org/apache/chemistry/opencmis/server/impl/webservices/UsernameTokenInterceptor.java
Sun Nov 12 12:02:57 2017
@@ -18,6 +18,9 @@
  */
 package org.apache.chemistry.opencmis.server.impl.webservices;
 
+import java.util.Collections;
+import java.util.Set;
+
 import javax.xml.namespace.QName;
 
 import org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException;
@@ -47,6 +50,11 @@ public class UsernameTokenInterceptor ex
     protected static final String WSSE_PASSWORD_TYPE = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText";
 
     @Override
+    public Set<QName> getUnderstoodHeaders() {
+        return Collections.singleton(WSSE_SECURITY);
+    }
+
+    @Override
     public void handleMessage(SoapMessage message) {
         // don't extract a user, if there is already one
         if (getCurrentUser(message) == null) {



Mime
View raw message