cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbernha...@apache.org
Subject [1/2] cxf-fediz git commit: Allow to define properties on STSClientAction to support other authentication styles against the STS (x509 for example)
Date Wed, 12 Oct 2016 13:23:56 GMT
Repository: cxf-fediz
Updated Branches:
  refs/heads/master efec7de91 -> 32107856e


Allow to define properties on STSClientAction to support other authentication styles against
the STS (x509 for example)


Project: http://git-wip-us.apache.org/repos/asf/cxf-fediz/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf-fediz/commit/61ebc3aa
Tree: http://git-wip-us.apache.org/repos/asf/cxf-fediz/tree/61ebc3aa
Diff: http://git-wip-us.apache.org/repos/asf/cxf-fediz/diff/61ebc3aa

Branch: refs/heads/master
Commit: 61ebc3aa518b834202abd129235bf015b3caf08a
Parents: efec7de
Author: Jan Bernhardt <jbernhardt@talend.com>
Authored: Thu Aug 4 16:16:07 2016 +0200
Committer: Jan Bernhardt <jbernhardt@talend.com>
Committed: Wed Oct 12 14:37:54 2016 +0200

----------------------------------------------------------------------
 .../fediz/service/idp/beans/STSClientAction.java    | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf-fediz/blob/61ebc3aa/services/idp/src/main/java/org/apache/cxf/fediz/service/idp/beans/STSClientAction.java
----------------------------------------------------------------------
diff --git a/services/idp/src/main/java/org/apache/cxf/fediz/service/idp/beans/STSClientAction.java
b/services/idp/src/main/java/org/apache/cxf/fediz/service/idp/beans/STSClientAction.java
index dbfbed2..dbe4a25 100644
--- a/services/idp/src/main/java/org/apache/cxf/fediz/service/idp/beans/STSClientAction.java
+++ b/services/idp/src/main/java/org/apache/cxf/fediz/service/idp/beans/STSClientAction.java
@@ -24,6 +24,7 @@ import java.net.MalformedURLException;
 import java.net.URL;
 import java.security.cert.X509Certificate;
 import java.util.List;
+import java.util.Map;
 
 import javax.servlet.http.HttpServletRequest;
 import javax.xml.namespace.QName;
@@ -92,6 +93,8 @@ public class STSClientAction {
   
     protected String tokenType = WSConstants.WSS_SAML2_TOKEN_TYPE;
     
+    protected Map<String, Object> properties;
+    
     protected boolean use200502Namespace;
     
     protected int ttl = 1800;
@@ -102,6 +105,7 @@ public class STSClientAction {
     
     private String keyType = HTTP_DOCS_OASIS_OPEN_ORG_WS_SX_WS_TRUST_200512_BEARER;
 
+
     public String getWsdlLocation() {
         return wsdlLocation;
     }
@@ -273,6 +277,10 @@ public class STSClientAction {
             LOG.error("Protocol {} not supported for realm {} ", serviceConfig.getProtocol(),
realm);
             throw new ProcessingException(TYPE.BAD_REQUEST);
         }
+       
+        if (properties != null) {
+            sts.setProperties(properties);
+        }
         
         Element rpToken = null;
         try {
@@ -425,4 +433,12 @@ public class STSClientAction {
             }
         }
     }
+
+    public Map<String, Object> getProperties() {
+        return properties;
+    }
+
+    public void setProperties(Map<String, Object> properties) {
+        this.properties = properties;
+    }
 }


Mime
View raw message