axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mili...@apache.org
Subject svn commit: r618579 - in /webservices/axis2/trunk/c/neethi/src: ./ secpolicy/builder/ secpolicy/builder/saml_token_builder.c secpolicy/builder/token_identifier.c secpolicy/model/
Date Tue, 05 Feb 2008 08:57:49 GMT
Author: milinda
Date: Tue Feb  5 00:57:48 2008
New Revision: 618579

URL: http://svn.apache.org/viewvc?rev=618579&view=rev
Log:
Fixing some bugs in SamlToken and IssuedToken Assertion processing.

Modified:
    webservices/axis2/trunk/c/neethi/src/   (props changed)
    webservices/axis2/trunk/c/neethi/src/secpolicy/builder/   (props changed)
    webservices/axis2/trunk/c/neethi/src/secpolicy/builder/saml_token_builder.c
    webservices/axis2/trunk/c/neethi/src/secpolicy/builder/token_identifier.c
    webservices/axis2/trunk/c/neethi/src/secpolicy/model/   (props changed)

Propchange: webservices/axis2/trunk/c/neethi/src/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Tue Feb  5 00:57:48 2008
@@ -0,0 +1,2 @@
+.deps
+.libs

Propchange: webservices/axis2/trunk/c/neethi/src/secpolicy/builder/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Tue Feb  5 00:57:48 2008
@@ -0,0 +1,2 @@
+.deps
+.libs

Modified: webservices/axis2/trunk/c/neethi/src/secpolicy/builder/saml_token_builder.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/neethi/src/secpolicy/builder/saml_token_builder.c?rev=618579&r1=618578&r2=618579&view=diff
==============================================================================
--- webservices/axis2/trunk/c/neethi/src/secpolicy/builder/saml_token_builder.c (original)
+++ webservices/axis2/trunk/c/neethi/src/secpolicy/builder/saml_token_builder.c Tue Feb  5
00:57:48 2008
@@ -53,7 +53,11 @@
     child_node = axiom_node_get_first_element(node, env);
     if (!child_node)
     {
-        return NULL;
+        assertion = neethi_assertion_create(env);
+        neethi_assertion_set_value(assertion, env,
+                                   saml_token,
+                                   ASSERTION_TYPE_SAML_TOKEN);
+        return assertion;
     }
 
     if (axiom_node_get_node_type(child_node, env) == AXIOM_ELEMENT)

Modified: webservices/axis2/trunk/c/neethi/src/secpolicy/builder/token_identifier.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/neethi/src/secpolicy/builder/token_identifier.c?rev=618579&r1=618578&r2=618579&view=diff
==============================================================================
--- webservices/axis2/trunk/c/neethi/src/secpolicy/builder/token_identifier.c (original)
+++ webservices/axis2/trunk/c/neethi/src/secpolicy/builder/token_identifier.c Tue Feb  5 00:57:48
2008
@@ -58,6 +58,20 @@
                                   RP_PROPERTY_X509_TOKEN);
             return AXIS2_SUCCESS;
         }
+        else if(type == ASSERTION_TYPE_SAML_TOKEN)
+        {
+            rp_saml_token_t *saml_token = NULL;
+            saml_token = (rp_saml_token_t*)value;
+            rp_property_set_value(token, env, saml_token, RP_PROPERTY_SAML_TOKEN);
+            return AXIS2_SUCCESS;
+        }
+        else if(type == ASSERTION_TYPE_ISSUED_TOKEN)
+        {
+            rp_issued_token_t *issued_token = NULL;
+            issued_token = (rp_issued_token_t*)value;
+            rp_property_set_value(token, env, issued_token, RP_PROPERTY_ISSUED_TOKEN);
+            return AXIS2_SUCCESS;
+        }
         else
             return AXIS2_FAILURE;
     }

Propchange: webservices/axis2/trunk/c/neethi/src/secpolicy/model/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Tue Feb  5 00:57:48 2008
@@ -0,0 +1,2 @@
+.deps
+.libs



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message