You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by da...@apache.org on 2006/08/08 06:52:51 UTC
svn commit: r429573 - in /webservices/axis2/trunk/c/rampart/include:
oxs_axiom.h oxs_token_cipher_value.h oxs_token_data_reference.h
oxs_token_encrypted_data.h oxs_token_encrypted_key.h
oxs_token_encryption_method.h rampart_constants.h
Author: damitha
Date: Mon Aug 7 21:52:51 2006
New Revision: 429573
URL: http://svn.apache.org/viewvc?rev=429573&view=rev
Log:
Adding files for omxmlsec token
Added:
webservices/axis2/trunk/c/rampart/include/oxs_token_encrypted_data.h
webservices/axis2/trunk/c/rampart/include/oxs_token_encrypted_key.h
Modified:
webservices/axis2/trunk/c/rampart/include/oxs_axiom.h
webservices/axis2/trunk/c/rampart/include/oxs_token_cipher_value.h
webservices/axis2/trunk/c/rampart/include/oxs_token_data_reference.h
webservices/axis2/trunk/c/rampart/include/oxs_token_encryption_method.h
webservices/axis2/trunk/c/rampart/include/rampart_constants.h
Modified: webservices/axis2/trunk/c/rampart/include/oxs_axiom.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/rampart/include/oxs_axiom.h?rev=429573&r1=429572&r2=429573&view=diff
==============================================================================
--- webservices/axis2/trunk/c/rampart/include/oxs_axiom.h (original)
+++ webservices/axis2/trunk/c/rampart/include/oxs_axiom.h Mon Aug 7 21:52:51 2006
@@ -39,6 +39,14 @@
typedef struct axiom_document_t oxs_axiom_document, *oxs_axiom_document_ptr;
typedef struct axiom_node_t oxs_axiom_node, *oxs_axiom_node_ptr;
+
+AXIS2_EXTERN axiom_node_t* AXIS2_CALL
+oxs_axiom_get_first_child_node_by_name(const axis2_env_t *env,
+ axiom_node_t* parent,
+ axis2_char_t* local_name,
+ axis2_char_t* ns_uri,
+ axis2_char_t* prefix);
+
AXIS2_EXTERN axis2_char_t* AXIS2_CALL
oxs_axiom_get_node_content(const axis2_env_t *env, axiom_node_t* node);
Modified: webservices/axis2/trunk/c/rampart/include/oxs_token_cipher_value.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/rampart/include/oxs_token_cipher_value.h?rev=429573&r1=429572&r2=429573&view=diff
==============================================================================
--- webservices/axis2/trunk/c/rampart/include/oxs_token_cipher_value.h (original)
+++ webservices/axis2/trunk/c/rampart/include/oxs_token_cipher_value.h Mon Aug 7 21:52:51 2006
@@ -37,6 +37,10 @@
* Cipher Value element
*/
+AXIS2_EXTERN axis2_char_t* AXIS2_CALL
+oxs_token_get_cipher_value(const axis2_env_t *env,
+ axiom_node_t *cv_node);
+
AXIS2_EXTERN axiom_node_t* AXIS2_CALL
oxs_token_build_cipher_value_element(const axis2_env_t *env,
axiom_node_t *parent,
Modified: webservices/axis2/trunk/c/rampart/include/oxs_token_data_reference.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/rampart/include/oxs_token_data_reference.h?rev=429573&r1=429572&r2=429573&view=diff
==============================================================================
--- webservices/axis2/trunk/c/rampart/include/oxs_token_data_reference.h (original)
+++ webservices/axis2/trunk/c/rampart/include/oxs_token_data_reference.h Mon Aug 7 21:52:51 2006
@@ -14,8 +14,8 @@
* limitations under the License.
*/
-#ifndef OXS_DATA_REFERENCE_H
-#define OXS_DATA_REFERENCE_H
+#ifndef OXS_TOKEN_DATA_REFERENCE_H
+#define OXS_TOKEN_DATA_REFERENCE_H
/**
@@ -36,13 +36,14 @@
/**
* Data Reference element
*/
-
AXIS2_EXTERN axiom_node_t* AXIS2_CALL
oxs_token_build_data_reference_element(const axis2_env_t *env,
axiom_node_t *parent,
- axis2_char_t* uri
+ axis2_char_t* data_ref
);
+AXIS2_EXTERN axis2_char_t *AXIS2_CALL
+oxs_token_get_data_reference(const axis2_env_t *env, axiom_node_t *data_ref_node);
/*TODO write free method*/
/** @} */
@@ -50,4 +51,4 @@
}
#endif
-#endif /* OXS_DATA_REFERENCE_H */
+#endif /* OXS_TOKEN_DATA_REFERENCE_H */
Added: webservices/axis2/trunk/c/rampart/include/oxs_token_encrypted_data.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/rampart/include/oxs_token_encrypted_data.h?rev=429573&view=auto
==============================================================================
--- webservices/axis2/trunk/c/rampart/include/oxs_token_encrypted_data.h (added)
+++ webservices/axis2/trunk/c/rampart/include/oxs_token_encrypted_data.h Mon Aug 7 21:52:51 2006
@@ -0,0 +1,53 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef OXS_ENCRYPTED_DATA_H
+#define OXS_ENCRYPTED_DATA_H
+
+
+/**
+ * @file oxs_enc.h
+ * @brief
+ */
+
+#include <axis2_defines.h>
+#include <axis2_env.h>
+#include <axiom_node.h>
+#include <axiom_element.h>
+#include <axis2_qname.h>
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+/**
+* EncryptedData element
+*/
+AXIS2_EXTERN axiom_node_t* AXIS2_CALL
+oxs_token_build_encrypted_data_element(const axis2_env_t *env,
+ axiom_node_t *parent,
+ axis2_char_t* type_attribute,
+ axis2_char_t* id
+ );
+
+
+/*TODO write free method*/
+/** @} */
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* OXS_ENCRYPTED_DATA_H */
Added: webservices/axis2/trunk/c/rampart/include/oxs_token_encrypted_key.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/rampart/include/oxs_token_encrypted_key.h?rev=429573&view=auto
==============================================================================
--- webservices/axis2/trunk/c/rampart/include/oxs_token_encrypted_key.h (added)
+++ webservices/axis2/trunk/c/rampart/include/oxs_token_encrypted_key.h Mon Aug 7 21:52:51 2006
@@ -0,0 +1,51 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef OXS_TOKEN_ENCRYPTED_KEY
+#define OXS_TOKEN_ENCRYPTED_KEY
+
+
+/**
+ * @file oxs_token_cipher_data.h
+ * @brief
+ */
+
+#include <axis2_defines.h>
+#include <axis2_env.h>
+#include <axiom_node.h>
+#include <axiom_element.h>
+#include <axis2_qname.h>
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+AXIS2_EXTERN axiom_node_t* AXIS2_CALL
+oxs_token_build_encrypted_key_element(const axis2_env_t *env,
+ axiom_node_t *parent );
+
+AXIS2_EXTERN axiom_node_t* AXIS2_CALL
+oxs_token_get_encrypted_key(const axis2_env_t *env,
+ axiom_node_t *parent);
+
+
+/*TODO write free method*/
+/** @} */
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* OXS_TOKEN_ENCRYPTED_KEY */
Modified: webservices/axis2/trunk/c/rampart/include/oxs_token_encryption_method.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/rampart/include/oxs_token_encryption_method.h?rev=429573&r1=429572&r2=429573&view=diff
==============================================================================
--- webservices/axis2/trunk/c/rampart/include/oxs_token_encryption_method.h (original)
+++ webservices/axis2/trunk/c/rampart/include/oxs_token_encryption_method.h Mon Aug 7 21:52:51 2006
@@ -33,6 +33,7 @@
{
#endif
+
/**
* Encryption Method element
*/
@@ -42,7 +43,8 @@
axis2_char_t* algorithm
);
-
+AXIS2_EXTERN axis2_char_t *AXIS2_CALL
+oxs_token_get_encryption_method(const axis2_env_t *env, axiom_node_t *enc_mtd_node);
/*TODO write free method*/
/** @} */
#ifdef __cplusplus
Modified: webservices/axis2/trunk/c/rampart/include/rampart_constants.h
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/rampart/include/rampart_constants.h?rev=429573&r1=429572&r2=429573&view=diff
==============================================================================
--- webservices/axis2/trunk/c/rampart/include/rampart_constants.h (original)
+++ webservices/axis2/trunk/c/rampart/include/rampart_constants.h Mon Aug 7 21:52:51 2006
@@ -24,6 +24,7 @@
#endif
/*Default values*/
+#define RAMPART_DEFAULT_KT_ALGO_HREF OXS_HrefRsaPkcs1
/* rampart element names*/
#define RAMPART_SECURITY "Security"
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org