cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject svn commit: r1370295 - /cxf/trunk/services/sts/sts-core/src/main/java/org/apache/cxf/sts/token/provider/SAMLTokenProvider.java
Date Tue, 07 Aug 2012 14:59:13 GMT
Author: coheigea
Date: Tue Aug  7 14:59:13 2012
New Revision: 1370295

URL: http://svn.apache.org/viewvc?rev=1370295&view=rev
Log:
Only use default statement providers when no user-configured provider is available

Modified:
    cxf/trunk/services/sts/sts-core/src/main/java/org/apache/cxf/sts/token/provider/SAMLTokenProvider.java

Modified: cxf/trunk/services/sts/sts-core/src/main/java/org/apache/cxf/sts/token/provider/SAMLTokenProvider.java
URL: http://svn.apache.org/viewvc/cxf/trunk/services/sts/sts-core/src/main/java/org/apache/cxf/sts/token/provider/SAMLTokenProvider.java?rev=1370295&r1=1370294&r2=1370295&view=diff
==============================================================================
--- cxf/trunk/services/sts/sts-core/src/main/java/org/apache/cxf/sts/token/provider/SAMLTokenProvider.java
(original)
+++ cxf/trunk/services/sts/sts-core/src/main/java/org/apache/cxf/sts/token/provider/SAMLTokenProvider.java
Tue Aug  7 14:59:13 2012
@@ -458,11 +458,11 @@ public class SAMLTokenProvider implement
             }
         }
         
-        // If no statements, then default to the DefaultAttributeStatementProvider and the
-        // ClaimsAttributeStatementProvider
-        if ((attrBeanList == null || attrBeanList.isEmpty()) 
-            && (authBeanList == null || authBeanList.isEmpty())
-            && (authDecisionBeanList == null || authDecisionBeanList.isEmpty()))
{
+        // If no providers have been configured, then default to the 
+        // DefaultAttributeStatementProvider and the ClaimsAttributeStatementProvider
+        if ((attributeStatementProviders == null || attributeStatementProviders.isEmpty())

+            && (authenticationStatementProviders == null || authenticationStatementProviders.isEmpty())
+            && (authDecisionStatementProviders == null || authDecisionStatementProviders.isEmpty()))
{
             attrBeanList = new ArrayList<AttributeStatementBean>();
             AttributeStatementProvider attributeProvider = new DefaultAttributeStatementProvider();
             AttributeStatementBean attributeBean = attributeProvider.getStatement(tokenParameters);



Mime
View raw message