cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject [2/6] cxf git commit: Adding initial TokenProvider to issue JWT tokens in the STS
Date Fri, 06 Nov 2015 15:14:21 GMT
http://git-wip-us.apache.org/repos/asf/cxf/blob/a493fc41/services/sts/sts-core/src/test/java/org/apache/cxf/sts/token/validator/SAMLTokenValidatorRealmTest.java
----------------------------------------------------------------------
diff --git a/services/sts/sts-core/src/test/java/org/apache/cxf/sts/token/validator/SAMLTokenValidatorRealmTest.java
b/services/sts/sts-core/src/test/java/org/apache/cxf/sts/token/validator/SAMLTokenValidatorRealmTest.java
index 5c326e8..08e2551 100644
--- a/services/sts/sts-core/src/test/java/org/apache/cxf/sts/token/validator/SAMLTokenValidatorRealmTest.java
+++ b/services/sts/sts-core/src/test/java/org/apache/cxf/sts/token/validator/SAMLTokenValidatorRealmTest.java
@@ -195,7 +195,7 @@ public class SAMLTokenValidatorRealmTest extends org.junit.Assert {
         assertTrue(providerResponse != null);
         assertTrue(providerResponse.getToken() != null && providerResponse.getTokenId()
!= null);
         
-        return providerResponse.getToken();
+        return (Element)providerResponse.getToken();
     }
     
     private Map<String, SAMLRealm> getSamlRealms() {

http://git-wip-us.apache.org/repos/asf/cxf/blob/a493fc41/services/sts/sts-core/src/test/java/org/apache/cxf/sts/token/validator/SAMLTokenValidatorTest.java
----------------------------------------------------------------------
diff --git a/services/sts/sts-core/src/test/java/org/apache/cxf/sts/token/validator/SAMLTokenValidatorTest.java
b/services/sts/sts-core/src/test/java/org/apache/cxf/sts/token/validator/SAMLTokenValidatorTest.java
index bfb234e..b959097 100644
--- a/services/sts/sts-core/src/test/java/org/apache/cxf/sts/token/validator/SAMLTokenValidatorTest.java
+++ b/services/sts/sts-core/src/test/java/org/apache/cxf/sts/token/validator/SAMLTokenValidatorTest.java
@@ -516,7 +516,7 @@ public class SAMLTokenValidatorTest extends org.junit.Assert {
         assertTrue(providerResponse != null);
         assertTrue(providerResponse.getToken() != null && providerResponse.getTokenId()
!= null);
         
-        return providerResponse.getToken();
+        return (Element)providerResponse.getToken();
     }
     
     private Element createSAMLAssertionWithRoles(
@@ -546,7 +546,7 @@ public class SAMLTokenValidatorTest extends org.junit.Assert {
         assertTrue(providerResponse != null);
         assertTrue(providerResponse.getToken() != null && providerResponse.getTokenId()
!= null);
 
-        return providerResponse.getToken();
+        return (Element)providerResponse.getToken();
     }
     
     private Element createSAMLAssertionWithClaimsProvider(
@@ -563,7 +563,7 @@ public class SAMLTokenValidatorTest extends org.junit.Assert {
         assertTrue(providerResponse != null);
         assertTrue(providerResponse.getToken() != null && providerResponse.getTokenId()
!= null);
 
-        return providerResponse.getToken();
+        return (Element)providerResponse.getToken();
     }
     
     private Element createSAMLAssertion(
@@ -596,7 +596,7 @@ public class SAMLTokenValidatorTest extends org.junit.Assert {
         assertTrue(providerResponse != null);
         assertTrue(providerResponse.getToken() != null && providerResponse.getTokenId()
!= null);
 
-        return providerResponse.getToken();
+        return (Element)providerResponse.getToken();
     }    
     
     private TokenProviderParameters createProviderParameters(


Mime
View raw message