axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From manj...@apache.org
Subject svn commit: r531849 - in /webservices/axis2/scratch/c/neethi/axis2c/neethi/src: assertion_builder.c secpolicy/builder/transport_binding_builder.c
Date Tue, 24 Apr 2007 09:34:30 GMT
Author: manjula
Date: Tue Apr 24 02:34:29 2007
New Revision: 531849

URL: http://svn.apache.org/viewvc?view=rev&rev=531849
Log:
Committing latest modifications to the assertion_builder.

Modified:
    webservices/axis2/scratch/c/neethi/axis2c/neethi/src/assertion_builder.c
    webservices/axis2/scratch/c/neethi/axis2c/neethi/src/secpolicy/builder/transport_binding_builder.c

Modified: webservices/axis2/scratch/c/neethi/axis2c/neethi/src/assertion_builder.c
URL: http://svn.apache.org/viewvc/webservices/axis2/scratch/c/neethi/axis2c/neethi/src/assertion_builder.c?view=diff&rev=531849&r1=531848&r2=531849
==============================================================================
--- webservices/axis2/scratch/c/neethi/axis2c/neethi/src/assertion_builder.c (original)
+++ webservices/axis2/scratch/c/neethi/axis2c/neethi/src/assertion_builder.c Tue Apr 24 02:34:29
2007
@@ -117,6 +117,72 @@
             return rp_https_token_builder_build(env, node, element);
         }
         else return NULL;
+    }
+    else if(axis2_strcmp(localname, RP_WSS_USERNAME_TOKEN_10)==0)
+    {
+        if(rp_match_secpolicy_qname(env, RP_WSS_USERNAME_TOKEN_10, node, element))
+        {
+            neethi_assertion_t *assertion = NULL;
+            assertion = neethi_assertion_create(env);
+            neethi_assertion_set_value(assertion, env, NULL, ASSERTION_TYPE_WSS_USERNAME_TOKEN_10);
+            return assertion;
+        }
+        else return NULL;
     }        
+    else if(axis2_strcmp(localname, RP_WSS_USERNAME_TOKEN_11)==0)
+    {
+        if(rp_match_secpolicy_qname(env, RP_WSS_USERNAME_TOKEN_11, node, element))
+        {
+            neethi_assertion_t *assertion = NULL;
+            assertion = neethi_assertion_create(env);
+            neethi_assertion_set_value(assertion, env, NULL, ASSERTION_TYPE_WSS_USERNAME_TOKEN_11);
+            return assertion;
+        }
+        else return NULL;
+    }
+    else if(axis2_strcmp(localname, RP_MUST_SUPPORT_REF_KEY_IDENTIFIER)==0)
+    {
+        if(rp_match_secpolicy_qname(env, RP_MUST_SUPPORT_REF_KEY_IDENTIFIER, node, element))
+        {
+            neethi_assertion_t *assertion = NULL;
+            assertion = neethi_assertion_create(env);
+            neethi_assertion_set_value(assertion, env, NULL, ASSERTION_TYPE_MUST_SUPPORT_REF_KEY_IDENTIFIER);
+            return assertion;
+        }
+        else return NULL;
+    }
+    else if(axis2_strcmp(localname, RP_MUST_SUPPORT_REF_ISSUER_SERIAL)==0)
+    {
+        if(rp_match_secpolicy_qname(env, RP_MUST_SUPPORT_REF_ISSUER_SERIAL, node, element))
+        {
+            neethi_assertion_t *assertion = NULL;
+            assertion = neethi_assertion_create(env);
+            neethi_assertion_set_value(assertion, env, NULL, ASSERTION_TYPE_MUST_SUPPORT_REF_ISSUER_SERIAL);
+            return assertion;
+        }
+        else return NULL;
+    }
+    else if(axis2_strcmp(localname, RP_MUST_SUPPORT_REF_EXTERNAL_URI)==0)
+    {
+        if(rp_match_secpolicy_qname(env, RP_MUST_SUPPORT_REF_EXTERNAL_URI, node, element))
+        {
+            neethi_assertion_t *assertion = NULL;
+            assertion = neethi_assertion_create(env);
+            neethi_assertion_set_value(assertion, env, NULL, ASSERTION_TYPE_MUST_SUPPORT_REF_EXTERNAL_URI);
+            return assertion;
+        }
+        else return NULL;
+    }
+    else if(axis2_strcmp(localname, RP_MUST_SUPPORT_REF_EMBEDDED_TOKEN)==0)
+    {
+        if(rp_match_secpolicy_qname(env, RP_MUST_SUPPORT_REF_EMBEDDED_TOKEN, node, element))
+        {
+            neethi_assertion_t *assertion = NULL;
+            assertion = neethi_assertion_create(env);
+            neethi_assertion_set_value(assertion, env, NULL, ASSERTION_TYPE_MUST_SUPPORT_REF_EMBEDDED_TOKEN);
+            return assertion;
+        }
+        else return NULL;
+    }
     else return NULL;
 }

Modified: webservices/axis2/scratch/c/neethi/axis2c/neethi/src/secpolicy/builder/transport_binding_builder.c
URL: http://svn.apache.org/viewvc/webservices/axis2/scratch/c/neethi/axis2c/neethi/src/secpolicy/builder/transport_binding_builder.c?view=diff&rev=531849&r1=531848&r2=531849
==============================================================================
--- webservices/axis2/scratch/c/neethi/axis2c/neethi/src/secpolicy/builder/transport_binding_builder.c
(original)
+++ webservices/axis2/scratch/c/neethi/axis2c/neethi/src/secpolicy/builder/transport_binding_builder.c
Tue Apr 24 02:34:29 2007
@@ -140,28 +140,26 @@
                 }                    
                 else return AXIS2_FAILURE;
             }
-            /*
-            else if(type == ASSERTION_TYPE_SIGNED_SUPPORTING_TOKENS)
+            else if(type == ASSERTION_TYPE_SUPPORTING_TOKENS)
             {
-                rp_supporting_tokens_t *signed_supporting_tokens = NULL;
-                signed_supporting_tokens = (rp_supporting_tokens_t *)neethi_assertion_get_value(assertion,
env);
-                if(signed_supporting_tokens)
+                rp_supporting_tokens_t *supporting_tokens = NULL;
+                supporting_tokens = (rp_supporting_tokens_t *)neethi_assertion_get_value(assertion,
env);
+                if(supporting_tokens)
                 {
-                    rp_binding_commons_set_signed_supporting_tokens(commons, env, signed_supporting_tokens);
+                    int type = 0;
+                    type = rp_supporting_tokens_get_type(supporting_tokens, env);
+                    if(type == RP_SUPPORTING_SIGNED_SUPPORTING)
+                    {
+                        rp_binding_commons_set_signed_supporting_tokens(commons, env, supporting_tokens);
+                    }    
+                    else if(type == RP_SUPPORTING_SIGNED_ENDORSING_SUPPORTING)
+                    {
+                        rp_binding_commons_set_signed_endorsing_supporting_tokens(commons,
env, supporting_tokens);
+                    }                       
+                    else return AXIS2_FAILURE;
                 }                    
                 else return AXIS2_FAILURE;
             }
-            else if(type == ASSERTION_TYPE_SIGNED_ENDORSING_SUPPORTING_TOKENS)
-            {
-                rp_supporting_tokens_t *signed_endorsing_supporting_tokens = NULL;
-                signed_endorsing_supporting_tokens = (rp_supporting_tokens_t *)neethi_assertion_get_value(assertion,
env);
-                if(signed_endorsing_supporting_tokens)
-                {
-                    rp_binding_commons_set_signed_endorsing_supporting_tokens(commons, env,
signed_endorsing_supporting_tokens);
-                }
-                else return AXIS2_FAILURE;
-            } 
-            */
             else return AXIS2_FAILURE;
         }        
         else return AXIS2_FAILURE;



---------------------------------------------------------------------
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