cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject git commit: Added a way to set Properties on the Fediz IdP STSClient.
Date Tue, 27 May 2014 16:20:13 GMT
Repository: cxf-fediz
Updated Branches:
  refs/heads/1.1.x-fixes e4cce41d5 -> 4fa62cf44


Added a way to set Properties on the Fediz IdP STSClient.

git-svn-id: https://svn.apache.org/repos/asf/cxf/fediz/trunk@1567973 13f79535-47bb-0310-9956-ffa450edef68


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

Branch: refs/heads/1.1.x-fixes
Commit: 4fa62cf44ef3582b9ef189f67e32546c56767815
Parents: e4cce41
Author: Colm O Heigeartaigh <coheigea@apache.org>
Authored: Thu Feb 13 16:32:51 2014 +0000
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Tue May 27 16:34:36 2014 +0100

----------------------------------------------------------------------
 .../cxf/fediz/service/idp/STSAuthenticationProvider.java | 11 +++++++++++
 1 file changed, 11 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf-fediz/blob/4fa62cf4/services/idp/src/main/java/org/apache/cxf/fediz/service/idp/STSAuthenticationProvider.java
----------------------------------------------------------------------
diff --git a/services/idp/src/main/java/org/apache/cxf/fediz/service/idp/STSAuthenticationProvider.java
b/services/idp/src/main/java/org/apache/cxf/fediz/service/idp/STSAuthenticationProvider.java
index b59be0a..7f7f536 100644
--- a/services/idp/src/main/java/org/apache/cxf/fediz/service/idp/STSAuthenticationProvider.java
+++ b/services/idp/src/main/java/org/apache/cxf/fediz/service/idp/STSAuthenticationProvider.java
@@ -78,6 +78,8 @@ public class STSAuthenticationProvider implements AuthenticationProvider
{
     //Required to get IDP roles to use the IDP application, used in future release
     protected String roleURI;
     
+    protected Map<String, Object> properties = new HashMap<String, Object>();
+    
     
     @Override
     public Authentication authenticate(Authentication authentication) throws AuthenticationException
{
@@ -101,6 +103,7 @@ public class STSAuthenticationProvider implements AuthenticationProvider
{
                                        wsdlEndpoint));
         sts.getProperties().put(SecurityConstants.USERNAME, authentication.getName());
         sts.getProperties().put(SecurityConstants.PASSWORD, (String)authentication.getCredentials());
+        sts.getProperties().putAll(properties);
            
         if (lifetime != null) {
             sts.setEnableLifetime(true);
@@ -312,6 +315,14 @@ public class STSAuthenticationProvider implements AuthenticationProvider
{
     public void setRoleURI(String roleURI) {
         this.roleURI = roleURI;
     }
+    
+    public void setProperties(Map<String, Object> p) {
+        properties.putAll(p);
+    }
+
+    public Map<String, Object> getProperties() {
+        return properties;
+    }
 
 //May be uncommented for debugging    
 //    private void setTimeout(Client client, Long timeout) {


Mime
View raw message