cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject svn commit: r1562789 - /cxf/trunk/services/sts/sts-core/src/main/java/org/apache/cxf/sts/token/provider/DefaultConditionsProvider.java
Date Thu, 30 Jan 2014 11:47:36 GMT
Author: coheigea
Date: Thu Jan 30 11:47:36 2014
New Revision: 1562789

URL: http://svn.apache.org/r1562789
Log:
[CXF-5531] - STS can only create SAML Tokens with a NotOnOrAfter Condition specified in minutes

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

Modified: cxf/trunk/services/sts/sts-core/src/main/java/org/apache/cxf/sts/token/provider/DefaultConditionsProvider.java
URL: http://svn.apache.org/viewvc/cxf/trunk/services/sts/sts-core/src/main/java/org/apache/cxf/sts/token/provider/DefaultConditionsProvider.java?rev=1562789&r1=1562788&r2=1562789&view=diff
==============================================================================
--- cxf/trunk/services/sts/sts-core/src/main/java/org/apache/cxf/sts/token/provider/DefaultConditionsProvider.java
(original)
+++ cxf/trunk/services/sts/sts-core/src/main/java/org/apache/cxf/sts/token/provider/DefaultConditionsProvider.java
Thu Jan 30 11:47:36 2014
@@ -191,11 +191,11 @@ public class DefaultConditionsProvider i
                     conditions.setNotBefore(creationDateTime);
                 } catch (ParseException e) {
                     LOG.warning("Failed to parse life time element: " + e.getMessage());
-                    conditions.setTokenPeriodMinutes((int)(lifetime / 60L));
+                    conditions.setTokenPeriodSeconds(lifetime);
                 }
                 
             } else {
-                conditions.setTokenPeriodMinutes((int)(lifetime / 60L));
+                conditions.setTokenPeriodSeconds(lifetime);
             }
         } else {
             conditions.setTokenPeriodMinutes(5);



Mime
View raw message