# Rampart Context
[Rampart Utilities]

## Typedefs
typedef struct rampart_context_t | rampart_context_t
typedef axis2_char_t *(* | password_callback_fn )(const axutil_env_t *env, const axis2_char_t *username, void *user_params)
typedef axis2_status_t(* | rampart_is_replayed_fn )(const axutil_env_t *env, axis2_msg_ctx_t *msg_ctx, rampart_context_t *rampart_context, void *user_params)
typedef rampart_authn_provider_status_t(* | auth_password_func )(const axutil_env_t *env, const axis2_char_t *username, const axis2_char_t *password, void *ctx)
typedef rampart_authn_provider_status_t(* | auth_digest_func )(const axutil_env_t *env, const axis2_char_t *username, const axis2_char_t *nonce, const axis2_char_t *created, const char *digest, void *ctx)
typedef axis2_status_t(* | store_security_context_token_fn )(const axutil_env_t *env, axis2_msg_ctx_t *msg_ctx, axis2_char_t *sct_global_id, axis2_char_t *sct_local_id, void *sct, void *user_params)
typedef void *(* | obtain_security_context_token_fn )(const axutil_env_t *env, axis2_bool_t is_encryption, axis2_msg_ctx_t *msg_ctx, axis2_char_t *sct_id, int sct_id_type, void *user_params)
typedef axis2_status_t(* | delete_security_context_token_fn )(const axutil_env_t *env, axis2_msg_ctx_t *msg_ctx, axis2_char_t *sct_id, int sct_id_type, void *user_params)
typedef axis2_status_t(* | validate_security_context_token_fn )(const axutil_env_t *env, axiom_node_t *sct_node, axis2_msg_ctx_t *msg_ctx, void *user_params)
## Functions
AXIS2_EXTERN rampart_context_t * | rampart_context_create (const axutil_env_t *env)
AXIS2_EXTERN void | rampart_context_free (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN axis2_status_t | rampart_context_set_policy_node (rampart_context_t *rampart_context, const axutil_env_t *env, axiom_node_t *policy_node)
AXIS2_EXTERN axis2_status_t | rampart_context_set_prv_key (rampart_context_t *rampart_context, const axutil_env_t *env, void *prv_key)
AXIS2_EXTERN axis2_status_t | rampart_context_set_prv_key_type (rampart_context_t *rampart_context, const axutil_env_t *env, axis2_key_type_t type)
AXIS2_EXTERN axis2_status_t | rampart_context_set_certificate (rampart_context_t *rampart_context, const axutil_env_t *env, void *certificate)
AXIS2_EXTERN axis2_status_t | rampart_context_set_certificate_type (rampart_context_t *rampart_context, const axutil_env_t *env, axis2_key_type_t type)
AXIS2_EXTERN axis2_status_t | rampart_context_set_receiver_certificate (rampart_context_t *rampart_context, const axutil_env_t *env, void *receiver_certificate)
AXIS2_EXTERN axis2_status_t | rampart_context_set_receiver_certificate_type (rampart_context_t *rampart_context, const axutil_env_t *env, axis2_key_type_t type)
AXIS2_EXTERN axis2_status_t | rampart_context_set_user (rampart_context_t *rampart_context, const axutil_env_t *env, axis2_char_t *user)
AXIS2_EXTERN axis2_status_t | rampart_context_set_password (rampart_context_t *rampart_context, const axutil_env_t *env, axis2_char_t *password)
AXIS2_EXTERN axis2_status_t | rampart_context_set_prv_key_password (rampart_context_t *rampart_context, const axutil_env_t *env, axis2_char_t *prv_key_password)
AXIS2_EXTERN axis2_status_t | rampart_context_set_pwcb_function (rampart_context_t *rampart_context, const axutil_env_t *env, password_callback_fn pwcb_function, void *user_params)
AXIS2_EXTERN axis2_status_t | rampart_context_set_replay_detect_function (rampart_context_t *rampart_context, const axutil_env_t *env, rampart_is_replayed_fn is_replayed_function, void *user_params)
AXIS2_EXTERN void * | rampart_context_get_rd_user_params (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN axis2_status_t | rampart_context_set_password_type (rampart_context_t *rampart_context, const axutil_env_t *env, axis2_char_t *password_type)
AXIS2_EXTERN axis2_status_t | rampart_context_set_ttl (rampart_context_t *rampart_context, const axutil_env_t *env, int ttl)
AXIS2_EXTERN axis2_status_t | rampart_context_set_need_millisecond_precision (rampart_context_t *rampart_context, const axutil_env_t *env, axis2_bool_t need_millisecond_precision)
AXIS2_EXTERN axis2_status_t | rampart_context_set_clock_skew_buffer (rampart_context_t *rampart_context, const axutil_env_t *env, int skew_buffer)
AXIS2_EXTERN axis2_status_t | rampart_context_set_rd_val (rampart_context_t *rampart_context, const axutil_env_t *env, axis2_char_t *rd_val)
AXIS2_EXTERN axis2_status_t | rampart_context_set_private_key_file (rampart_context_t *rampart_context, const axutil_env_t *env, axis2_char_t *private_key_file)
AXIS2_EXTERN axis2_status_t | rampart_context_set_certificate_file (rampart_context_t *rampart_context, const axutil_env_t *env, axis2_char_t *certificate_file)
AXIS2_EXTERN axis2_status_t | rampart_context_add_key (rampart_context_t *rampart_context, const axutil_env_t *env, oxs_key_t *key)
AXIS2_EXTERN axiom_node_t * | rampart_context_get_policy_node (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN void * | rampart_context_get_prv_key (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN axis2_key_type_t | rampart_context_get_prv_key_type (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN void * | rampart_context_get_certificate (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN axis2_key_type_t | rampart_context_get_certificate_type (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN void * | rampart_context_get_receiver_certificate (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN axis2_key_type_t | rampart_context_get_receiver_certificate_type (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN axis2_char_t * | rampart_context_get_user (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN axis2_char_t * | rampart_context_get_password (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN axis2_char_t * | rampart_context_get_prv_key_password (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN password_callback_fn | rampart_context_get_pwcb_function (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN rampart_is_replayed_fn | rampart_context_get_replay_detect_function (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN void * | rampart_context_get_pwcb_user_params (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN int | rampart_context_get_ttl (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN axis2_bool_t | rampart_context_get_need_millisecond_precision (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN int | rampart_context_get_clock_skew_buffer (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN axis2_char_t * | rampart_context_get_rd_val (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN axis2_char_t * | rampart_context_get_password_type (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN axutil_array_list_t * | rampart_context_get_keys (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN oxs_key_t * | rampart_context_get_key (rampart_context_t *rampart_context, const axutil_env_t *env, axis2_char_t *key_id)
AXIS2_EXTERN oxs_key_t * | rampart_context_get_key_using_hash (rampart_context_t *rampart_context, const axutil_env_t *env, axis2_char_t *hash)
AXIS2_EXTERN rp_secpolicy_t * | rampart_context_get_secpolicy (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN axis2_status_t | rampart_context_set_secpolicy (rampart_context_t *rampart_context, const axutil_env_t *env, rp_secpolicy_t *secpolicy)
AXIS2_EXTERN rampart_callback_t * | rampart_context_get_password_callback (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN axis2_status_t | rampart_context_set_password_callback (rampart_context_t *rampart_context, const axutil_env_t *env, rampart_callback_t *password_callback_module)
AXIS2_EXTERN auth_password_func | rampart_context_get_auth_password_function (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN axis2_status_t | rampart_context_set_auth_password_function (rampart_context_t *rampart_context, const axutil_env_t *env, auth_password_func authenticate_with_password)
AXIS2_EXTERN auth_digest_func | rampart_context_get_auth_digest_function (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN axis2_status_t | rampart_context_set_auth_digest_function (rampart_context_t *rampart_context, const axutil_env_t *env, auth_digest_func authenticate_with_digest)
AXIS2_EXTERN rampart_authn_provider_t * | rampart_context_get_authn_provider (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN void * | rampart_context_get_replay_detector (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN void * | rampart_context_get_sct_provider (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN axis2_status_t | rampart_context_set_authn_provider (rampart_context_t *rampart_context, const axutil_env_t *env, rampart_authn_provider_t *authn_provider)
AXIS2_EXTERN axis2_status_t | rampart_context_set_replay_detector (rampart_context_t *rampart_context, const axutil_env_t *env, void *replay_detector)
AXIS2_EXTERN axis2_status_t | rampart_context_set_sct_provider (rampart_context_t *rampart_context, const axutil_env_t *env, void *sct_module)
AXIS2_EXTERN axis2_bool_t | rampart_context_get_require_timestamp (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN axis2_bool_t | rampart_context_get_require_ut (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN rp_property_type_t | rampart_context_get_binding_type (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN axis2_bool_t | rampart_context_is_include_timestamp (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN axis2_bool_t | rampart_context_is_include_username_token (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN axis2_bool_t | rampart_context_is_include_supporting_token (rampart_context_t *rampart_context, const axutil_env_t *env, axis2_bool_t server_side, axis2_bool_t is_inpath, rp_property_type_t token_type)
AXIS2_EXTERN axis2_bool_t | rampart_context_is_include_protection_saml_token (rampart_context_t *rampart_context, axis2_bool_t server_side, axis2_bool_t is_inpath, const axutil_env_t *env)
AXIS2_EXTERN rp_property_t * | rampart_context_get_supporting_token (rampart_context_t *rampart_context, const axutil_env_t *env, rp_property_type_t token_type)
AXIS2_EXTERN axis2_char_t * | rampart_context_get_password_callback_class (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN axis2_char_t * | rampart_context_get_authn_module_name (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN axis2_char_t * | rampart_context_get_replay_detector_name (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN axis2_char_t * | rampart_context_get_sct_provider_name (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN axis2_bool_t | rampart_context_is_encrypt_before_sign (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN axis2_bool_t | rampart_context_is_encrypt_signature (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN axis2_status_t | rampart_context_get_nodes_to_encrypt (rampart_context_t *rampart_context, const axutil_env_t *env, axiom_soap_envelope_t *soap_envelope, axutil_array_list_t *nodes_to_encrypt)
AXIS2_EXTERN axis2_status_t | rampart_context_get_nodes_to_sign (rampart_context_t *rampart_context, const axutil_env_t *env, axiom_soap_envelope_t *soap_envelope, axutil_array_list_t *nodes_to_sign)
AXIS2_EXTERN axis2_status_t | rampart_context_get_elements_to_encrypt (rampart_context_t *rampart_context, const axutil_env_t *env, axiom_soap_envelope_t *soap_envelope, axutil_array_list_t *nodes_to_encrypt)
AXIS2_EXTERN axis2_status_t | rampart_context_get_elements_to_sign (rampart_context_t *rampart_context, const axutil_env_t *env, axiom_soap_envelope_t *soap_envelope, axutil_array_list_t *nodes_to_sign)
AXIS2_EXTERN rp_property_t * | rampart_context_get_token (rampart_context_t *rampart_context, const axutil_env_t *env, axis2_bool_t for_encryption, axis2_bool_t server_side, axis2_bool_t is_inpath)
AXIS2_EXTERN rp_property_t * | rampart_context_get_endorsing_token (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN axis2_bool_t | rampart_context_check_is_derived_keys (const axutil_env_t *env, rp_property_t *token)
AXIS2_EXTERN axis2_char_t * | rampart_context_get_derived_key_version (const axutil_env_t *env, rp_property_t *token)
AXIS2_EXTERN axis2_char_t * | rampart_context_get_enc_sym_algo (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN axis2_char_t * | rampart_context_get_enc_asym_algo (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN axis2_char_t * | rampart_context_get_asym_sig_algo (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN axis2_char_t * | rampart_context_get_sym_sig_algo (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN axis2_char_t * | rampart_context_get_digest_mtd (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN axis2_char_t * | rampart_context_get_encryption_user (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN axis2_bool_t | rampart_context_is_token_include (rampart_context_t *rampart_context, rp_property_t *token, rp_property_type_t token_type, axis2_bool_t server_side, axis2_bool_t is_inpath, const axutil_env_t *env)
AXIS2_EXTERN axis2_char_t * | rampart_context_get_key_identifier (rampart_context_t *rampart_context, rp_property_t *token, const axutil_env_t *env)
AXIS2_EXTERN axis2_bool_t | rampart_context_is_token_type_supported (rp_property_type_t token_type, const axutil_env_t *env)
AXIS2_EXTERN axis2_bool_t | rampart_context_is_key_identifier_type_supported (rampart_context_t *rampart_context, rp_property_t *token, axis2_char_t *identifier, const axutil_env_t *env)
AXIS2_EXTERN axis2_char_t * | rampart_context_get_layout (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN axis2_bool_t | rampart_context_check_whether_to_encrypt (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN axis2_bool_t | rampart_context_check_whether_to_sign (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN axis2_status_t | rampart_context_set_user_from_file (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN axis2_status_t | rampart_context_set_password_type_from_file (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN axis2_char_t * | rampart_context_get_certificate_file (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN axis2_char_t * | rampart_context_get_receiver_certificate_file (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN axis2_char_t * | rampart_context_get_private_key_file (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN axis2_status_t | rampart_context_set_ttl_from_file (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN axis2_status_t | rampart_context_set_clock_skew_buffer_from_file (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN axis2_status_t | rampart_context_set_need_millisecond_precision_from_file (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN axis2_status_t | rampart_context_set_rd_val_from_file (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN oxs_key_t * | rampart_context_get_encryption_session_key (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN axis2_status_t | rampart_context_set_encryption_session_key (rampart_context_t *rampart_context, const axutil_env_t *env, oxs_key_t *session_key)
AXIS2_EXTERN oxs_key_t * | rampart_context_get_signature_session_key (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN axis2_status_t | rampart_context_set_signature_session_key (rampart_context_t *rampart_context, const axutil_env_t *env, oxs_key_t *session_key)
AXIS2_EXTERN axis2_status_t | rampart_context_increment_ref (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN axis2_bool_t | rampart_context_is_sig_confirmation_reqd (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN axis2_char_t * | rampart_context_get_encryption_token_id (rampart_context_t *rampart_context, const axutil_env_t *env, axis2_msg_ctx_t *msg_ctx)
AXIS2_EXTERN axis2_char_t * | rampart_context_get_signature_token_id (rampart_context_t *rampart_context, const axutil_env_t *env, axis2_msg_ctx_t *msg_ctx)
AXIS2_EXTERN axis2_status_t | rampart_context_set_encryption_token_id (rampart_context_t *rampart_context, const axutil_env_t *env, axis2_char_t *sct_id, axis2_msg_ctx_t *msg_ctx)
AXIS2_EXTERN axis2_status_t | rampart_context_set_signature_token_id (rampart_context_t *rampart_context, const axutil_env_t *env, axis2_char_t *sct_id, axis2_msg_ctx_t *msg_ctx)
AXIS2_EXTERN rampart_saml_token_t * | rampart_context_get_saml_token (rampart_context_t *rampart_context, const axutil_env_t *env, rampart_st_type_t token_type)
AXIS2_EXTERN axis2_status_t | rampart_context_add_saml_token (rampart_context_t *rampart_context, const axutil_env_t *env, rampart_saml_token_t *token)
AXIS2_EXTERN axis2_status_t | rampart_context_set_saml_tokens (rampart_context_t *rampart_context, const axutil_env_t *env, axutil_array_list_t *tokens)
AXIS2_EXTERN issued_token_callback_func | rampart_context_get_issued_token_aquire_function (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN axis2_status_t | rampart_context_set_issued_token_aquire_function (rampart_context_t *rampart_context, const axutil_env_t *env, issued_token_callback_func issued_token_aquire)
AXIS2_EXTERN int | rampart_context_get_encryption_derived_key_len (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN int | rampart_context_get_signature_derived_key_len (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN rp_algorithmsuite_t * | rampart_context_get_algorithmsuite (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN oxs_key_mgr_t * | rampart_context_get_key_mgr (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN axis2_status_t | rampart_context_set_key_mgr (rampart_context_t *rampart_context, const axutil_env_t *env, oxs_key_mgr_t *key_mgr)
AXIS2_EXTERN axis2_char_t * | rampart_context_get_pkcs12_file_name (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN axis2_status_t | rampart_context_set_custom_tokens (rampart_context_t *rampart_context, const axutil_env_t *env, axutil_array_list_t *tokens)
AXIS2_EXTERN axutil_array_list_t * | rampart_context_get_custom_tokens (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN axis2_bool_t | rampart_context_get_found_cert_in_shp (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN axis2_status_t | rampart_context_set_found_cert_in_shp (rampart_context_t *rampart_context, const axutil_env_t *env, axis2_bool_t found_cert_in_shp)
AXIS2_EXTERN oxs_x509_cert_t * | rampart_context_get_receiver_cert_found_in_shp (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN axis2_status_t | rampart_context_set_receiver_cert_found_in_shp (rampart_context_t *rampart_context, const axutil_env_t *env, oxs_x509_cert_t *cert)
AXIS2_EXTERN void * | rampart_context_get_key_store_buff (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN axis2_status_t | rampart_context_set_key_store_buff (rampart_context_t *rampart_context, const axutil_env_t *env, void *key_store_buf, int length)
AXIS2_EXTERN axis2_status_t | rampart_context_set_store_security_context_token_fn (rampart_context_t *rampart_context, const axutil_env_t *env, store_security_context_token_fn store_fn)
AXIS2_EXTERN axis2_status_t | rampart_context_set_obtain_security_context_token_fn (rampart_context_t *rampart_context, const axutil_env_t *env, obtain_security_context_token_fn get_fn)
AXIS2_EXTERN axis2_status_t | rampart_context_set_delete_security_context_token_fn (rampart_context_t *rampart_context, const axutil_env_t *env, delete_security_context_token_fn delete_fn)
AXIS2_EXTERN axis2_status_t | rampart_context_set_security_context_token_user_params (rampart_context_t *rampart_context, const axutil_env_t *env, void *user_params)
AXIS2_EXTERN axis2_status_t | rampart_context_set_validate_security_context_token_fn (rampart_context_t *rampart_context, const axutil_env_t *env, validate_security_context_token_fn validate_fn)
AXIS2_EXTERN store_security_context_token_fn | rampart_context_get_store_security_context_token_fn (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN obtain_security_context_token_fn | rampart_context_get_obtain_security_context_token_fn (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN delete_security_context_token_fn | rampart_context_get_delete_security_context_token_fn (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN void * | rampart_context_get_security_context_token_user_params (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN validate_security_context_token_fn | rampart_context_get_validate_security_context_token_fn (rampart_context_t *rampart_context, const axutil_env_t *env)
AXIS2_EXTERN axis2_bool_t | rampart_context_is_different_session_key_for_enc_and_sign (const axutil_env_t *env, rampart_context_t *rampart_context)
AXIS2_EXTERN axis2_status_t | rampart_context_set_receiver_certificate_file (rampart_context_t *rampart_context, const axutil_env_t *env, axis2_char_t *receiver_certificate_file)

## Function Documentation

AXIS2_EXTERN axis2_status_t rampart_context_add_key | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env,
|  | oxs_key_t * | key |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.
  | key |

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_status_t rampart_context_add_saml_token | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env,
|  | rampart_saml_token_t * | token |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.
  | token |

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_bool_t rampart_context_check_is_derived_keys | ( | const axutil_env_t * | env,
|  | rp_property_t * | token |
| ) |  |  |

Parameters:

  | env | pointer to environment struct,Must not be NULL.
  | token |

Returns:
  whether derived key needed or not

AXIS2_EXTERN axis2_bool_t rampart_context_check_whether_to_encrypt | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_bool_t rampart_context_check_whether_to_sign | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN rampart_context_t* rampart_context_create | ( | const axutil_env_t * | env | ) |

Create a rampart_context.rampart_context is the wrapper of secpolicy and the main configuration for rampart.

Parameters:

  | env | pointer to environment struct,Must not be NULL.

Returns:
  ramaprt_context_t* on successful creation.Else NULL;

AXIS2_EXTERN void rampart_context_free | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Frees a rampart_context.

Parameters:

  | rampart_context | the rampart_context pointer to environment struct,Must not be NULL.

AXIS2_EXTERN rp_algorithmsuite_t* rampart_context_get_algorithmsuite | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_char_t* rampart_context_get_asym_sig_algo | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN auth_digest_func rampart_context_get_auth_digest_function | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN auth_password_func rampart_context_get_auth_password_function | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.
  | password_callback_module |

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_char_t* rampart_context_get_authn_module_name | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN rampart_authn_provider_t* rampart_context_get_authn_provider | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN rp_property_type_t rampart_context_get_binding_type | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN void* rampart_context_get_certificate | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_char_t* rampart_context_get_certificate_file | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_key_type_t rampart_context_get_certificate_type | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axutil_array_list_t* rampart_context_get_custom_tokens | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Get the node or the token list as an array. If the size is 0 that means there are no custom tokens specified by the client

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  the custom tokens list

AXIS2_EXTERN delete_security_context_token_fn rampart_context_get_delete_security_context_token_fn | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Get the function used to delete security context token

Parameters:

  | rampart_context | Pointer to rampart context struct.
  | env | Pointer to environment struct

Returns:
  funtion pointer used to delete stored sct

AXIS2_EXTERN axis2_char_t* rampart_context_get_derived_key_version | ( | const axutil_env_t * | env,
|  | rp_property_t * | token |
| ) |  |  |

Parameters:

  | env | pointer to environment struct,Must not be NULL.
  | token |

Returns:
  derived key version. NULL on error.

AXIS2_EXTERN axis2_char_t* rampart_context_get_digest_mtd | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_status_t rampart_context_get_elements_to_encrypt | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env,
|  | axiom_soap_envelope_t * | soap_envelope,
|  | axutil_array_list_t * | nodes_to_encrypt |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.
  | soap_envelope |
  | nodes_to_encrypt |

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_status_t rampart_context_get_elements_to_sign | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env,
|  | axiom_soap_envelope_t * | soap_envelope,
|  | axutil_array_list_t * | nodes_to_sign |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.
  | soap_envelope |
  | nodes_to_sign |

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_char_t* rampart_context_get_enc_asym_algo | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_char_t* rampart_context_get_enc_sym_algo | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN int rampart_context_get_encryption_derived_key_len | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN oxs_key_t* rampart_context_get_encryption_session_key | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_char_t* rampart_context_get_encryption_token_id | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env,
|  | axis2_msg_ctx_t * | msg_ctx |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_char_t* rampart_context_get_encryption_user | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN rp_property_t* rampart_context_get_endorsing_token | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_bool_t rampart_context_get_found_cert_in_shp | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Get the found_cert_in_shp from rampart context.

Parameters:

  | rampart_context | Pointer to rampart context struct.
  | env | Pointer to environment struct

Returns:
  axis2_bool_t

AXIS2_EXTERN issued_token_callback_func rampart_context_get_issued_token_aquire_function | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN oxs_key_t* rampart_context_get_key | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env,
|  | axis2_char_t * | key_id |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.
  | key_id |

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_char_t* rampart_context_get_key_identifier | ( | rampart_context_t * | rampart_context,
|  | rp_property_t * | token,
|  | const axutil_env_t * | env |
| ) |  |  |

Parameters:

  | rampart_context |
  | token |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN oxs_key_mgr_t* rampart_context_get_key_mgr | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Get the key manager from rampart context.

Parameters:

  | rampart_context | Pointer to rampart context struct.
  | Pointer | to environment struct

Returns:
  pointer Key manager struct

AXIS2_EXTERN oxs_key_t* rampart_context_get_key_using_hash | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env,
|  | axis2_char_t * | hash |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.
  | hash |

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axutil_array_list_t* rampart_context_get_keys | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_char_t* rampart_context_get_layout | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_status_t rampart_context_get_nodes_to_encrypt | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env,
|  | axiom_soap_envelope_t * | soap_envelope,
|  | axutil_array_list_t * | nodes_to_encrypt |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.
  | soap_envelope |
  | nodes_to_encrypt |

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_status_t rampart_context_get_nodes_to_sign | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env,
|  | axiom_soap_envelope_t * | soap_envelope,
|  | axutil_array_list_t * | nodes_to_sign |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.
  | soap_envelope |
  | nodes_to_sign |

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN obtain_security_context_token_fn rampart_context_get_obtain_security_context_token_fn | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Get the function used to get security context token

Parameters:

  | rampart_context | Pointer to rampart context struct.
  | env | Pointer to environment struct

Returns:
  funtion pointer used to get stored sct

AXIS2_EXTERN axis2_char_t* rampart_context_get_password | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN rampart_callback_t* rampart_context_get_password_callback | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_char_t* rampart_context_get_password_callback_class | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_char_t* rampart_context_get_password_type | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_char_t* rampart_context_get_pkcs12_file_name | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Get the pkcs12 file name from rampart context.

Parameters:

  | rampart_context | Pointer to rampart context struct.
  | Pointer | to environment struct

Returns:
  PKCS12 file name

AXIS2_EXTERN axiom_node_t* rampart_context_get_policy_node | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_char_t* rampart_context_get_private_key_file | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN void* rampart_context_get_prv_key | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_char_t* rampart_context_get_prv_key_password | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_key_type_t rampart_context_get_prv_key_type | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN password_callback_fn rampart_context_get_pwcb_function | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN void* rampart_context_get_pwcb_user_params | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN void* rampart_context_get_rd_user_params | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  user parameters for replay detector function or NULL

AXIS2_EXTERN axis2_char_t* rampart_context_get_rd_val | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN oxs_x509_cert_t* rampart_context_get_receiver_cert_found_in_shp | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Get the certificate found in shp from rampart context.

Parameters:

  | rampart_context | Pointer to rampart context struct.
  | env | Pointer to environment struct

Returns:
  oxs_x509_cert_t Client certificate found when processing sec header, otherwise NULL

AXIS2_EXTERN void* rampart_context_get_receiver_certificate | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_char_t * rampart_context_get_receiver_certificate_file | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

Get the receiver certificate file name from rampart context.

Parameters:

  | rampart_context | Pointer to rampart context struct.
  | env | Pointer to environment struct

Returns:
  Receiver certificate file name

AXIS2_EXTERN axis2_key_type_t rampart_context_get_receiver_certificate_type | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN rampart_is_replayed_fn rampart_context_get_replay_detect_function | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN void* rampart_context_get_replay_detector | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Parameters:

  | env | pointer to environment struct,Must not be NULL.

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_char_t* rampart_context_get_replay_detector_name | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_bool_t rampart_context_get_require_timestamp | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_bool_t rampart_context_get_require_ut | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN rampart_saml_token_t* rampart_context_get_saml_token | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env,
|  | rampart_st_type_t | token_type |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.
  | token_type |

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN void* rampart_context_get_sct_provider | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_char_t* rampart_context_get_sct_provider_name | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN rp_secpolicy_t* rampart_context_get_secpolicy | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN void* rampart_context_get_security_context_token_user_params | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Get the user parameters used to invoke security context token related funtions

Parameters:

  | rampart_context | Pointer to rampart context struct.
  | env | Pointer to environment struct
  | user_params | pointer to user params

Returns:
  pointer to user parameter.

AXIS2_EXTERN int rampart_context_get_signature_derived_key_len | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN oxs_key_t* rampart_context_get_signature_session_key | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_char_t* rampart_context_get_signature_token_id | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env,
|  | axis2_msg_ctx_t * | msg_ctx |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN store_security_context_token_fn rampart_context_get_store_security_context_token_fn | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Get the function used to store security context token

Parameters:

  | rampart_context | Pointer to rampart context struct.
  | env | Pointer to environment struct

Returns:
  untion pointer used to store sct

AXIS2_EXTERN rp_property_t* rampart_context_get_supporting_token | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env,
|  | rp_property_type_t | token_type |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.
  | token_type |

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_char_t* rampart_context_get_sym_sig_algo | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN rp_property_t* rampart_context_get_token | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env,
|  | axis2_bool_t | for_encryption,
|  | axis2_bool_t | server_side,
|  | axis2_bool_t | is_inpath |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  status of the op.

Parameters:

  | for_encryption |
  | sever_side |
  | is_inpath | AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN int rampart_context_get_ttl | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_char_t* rampart_context_get_user | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN validate_security_context_token_fn rampart_context_get_validate_security_context_token_fn | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Get the function used to validate security context token

Parameters:

  | rampart_context | Pointer to rampart context struct.
  | env | Pointer to environment struct

Returns:
  funtion pointer used to validate sct

AXIS2_EXTERN axis2_status_t rampart_context_increment_ref | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_bool_t rampart_context_is_different_session_key_for_enc_and_sign | ( | const axutil_env_t * | env,
|  | rampart_context_t * | rampart_context |
| ) |  |  |

check whether different keys are needed for encryption and signature

Parameters:

  | env | pointer to environment struct
  | rampart_context | rampart context

Returns:
  AXIS2_TRUE if different keys are needed. AXIS2_FALSE otherwise.

AXIS2_EXTERN axis2_bool_t rampart_context_is_encrypt_before_sign | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_bool_t rampart_context_is_encrypt_signature | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_bool_t rampart_context_is_include_protection_saml_token | ( | rampart_context_t * | rampart_context,
|  | axis2_bool_t | server_side,
|  | axis2_bool_t | is_inpath,
|  | const axutil_env_t * | env |
| ) |  |  |

Parameters:

  | rampart_context |
  | server_side |
  | is_inpath |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_bool_t rampart_context_is_include_supporting_token | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env,
|  | axis2_bool_t | server_side,
|  | axis2_bool_t | is_inpath,
|  | rp_property_type_t | token_type |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.
  | server_side |
  | is_inpath |
  | token_type |

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_bool_t rampart_context_is_include_timestamp | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_bool_t rampart_context_is_include_username_token | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_bool_t rampart_context_is_key_identifier_type_supported | ( | rampart_context_t * | rampart_context,
|  | rp_property_t * | token,
|  | axis2_char_t * | identifier,
|  | const axutil_env_t * | env |
| ) |  |  |

Parameters:

  | rampart_context |
  | token |
  | identifier |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_bool_t rampart_context_is_sig_confirmation_reqd | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_bool_t rampart_context_is_token_include | ( | rampart_context_t * | rampart_context,
|  | rp_property_t * | token,
|  | rp_property_type_t | token_type,
|  | axis2_bool_t | server_side,
|  | axis2_bool_t | is_inpath,
|  | const axutil_env_t * | env |
| ) |  |  |

Parameters:

  | rampart_context |
  | token |
  | token_type |
  | server_side |
  | is_inpath |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_bool_t rampart_context_is_token_type_supported | ( | rp_property_type_t | token_type,
|  | const axutil_env_t * | env |
| ) |  |  |

Parameters:

  | token_type |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_status_t rampart_context_set_auth_digest_function | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env,
|  | auth_digest_func | authenticate_with_digest |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.
  | authentication_with_digest |

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_status_t rampart_context_set_auth_password_function | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env,
|  | auth_password_func | authenticate_with_password |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.
  | authentication_with_password |

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_status_t rampart_context_set_authn_provider | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env,
|  | rampart_authn_provider_t * | authn_provider |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.
  | authn_provider |

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_status_t rampart_context_set_certificate | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env,
|  | void * | certificate |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.
  | certificate |

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_status_t rampart_context_set_certificate_file | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env,
|  | axis2_char_t * | certificate_file |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.
  | cerficate_file |

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_status_t rampart_context_set_certificate_type | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env,
|  | axis2_key_type_t | type |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.
  | type |

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_status_t rampart_context_set_custom_tokens | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env,
|  | axutil_array_list_t * | tokens |
| ) |  |  |

Set the a node list to the context. These nodes will be append to the Security header

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.
  | tokens | the token list as an array

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_status_t rampart_context_set_delete_security_context_token_fn | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env,
|  | delete_security_context_token_fn | delete_fn |
| ) |  |  |

Set the function used to delete security context token

Parameters:

  | rampart_context | Pointer to rampart context struct.
  | env | Pointer to environment struct
  | delete_fn | funtion pointer used to delete stored sct

Returns:
  status of the operation

AXIS2_EXTERN axis2_status_t rampart_context_set_encryption_session_key | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env,
|  | oxs_key_t * | session_key |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.
  | session_key |

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_status_t rampart_context_set_encryption_token_id | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env,
|  | axis2_char_t * | sct_id,
|  | axis2_msg_ctx_t * | msg_ctx |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.
  | sct_id |

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_status_t rampart_context_set_found_cert_in_shp | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env,
|  | axis2_bool_t | found_cert_in_shp |
| ) |  |  |

Set the certificate found status to rampart context.

Parameters:

  | rampart_context | Pointer to rampart context struct.
  | env | Pointer to environment struct
  | found_cert_in_shp | boolean value which specify the certificate found status

Returns:
  status of the operation

AXIS2_EXTERN axis2_status_t rampart_context_set_issued_token_aquire_function | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env,
|  | issued_token_callback_func | issued_token_aquire |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.
  | issued_token_aquire |

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_status_t rampart_context_set_key_mgr | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env,
|  | oxs_key_mgr_t * | key_mgr |
| ) |  |  |

Set the key manager to rampart context.

Parameters:

  | rampart_context | Pointer to rampart context struct.
  | Pointer | to environment struct
  | key_mgr | Pointer to key manager struct.

Returns:
  status of the operation. AXIS2_SUCCESS on success AXIS2_FAILURE otherwise.

AXIS2_EXTERN axis2_status_t rampart_context_set_obtain_security_context_token_fn | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env,
|  | obtain_security_context_token_fn | get_fn |
| ) |  |  |

Set the function used to get security context token

Parameters:

  | rampart_context | Pointer to rampart context struct.
  | env | Pointer to environment struct
  | get_fn | funtion pointer used to get stored sct

Returns:
  status of the operation

AXIS2_EXTERN axis2_status_t rampart_context_set_password | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env,
|  | axis2_char_t * | password |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.
  | password |

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_status_t rampart_context_set_password_callback | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env,
|  | rampart_callback_t * | password_callback_module |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_status_t rampart_context_set_password_type | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env,
|  | axis2_char_t * | password_type |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.
  | password_type |

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_status_t rampart_context_set_password_type_from_file | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_status_t rampart_context_set_policy_node | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env,
|  | axiom_node_t * | policy_node |
| ) |  |  |

Sets the policy node which is an om_node containing policy.This om_node can be build outside rampart.

Parameters:

  | rampart_context | the rampart_context
  | env | pointer to environment struct,Must not be NULL.
  | policy_node | is an axiom_node.

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_status_t rampart_context_set_private_key_file | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env,
|  | axis2_char_t * | private_key_file |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.
  | private_key_file |

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_status_t rampart_context_set_prv_key | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env,
|  | void * | prv_key |
| ) |  |  |

Sets private key of sender as a buffer.This can be set from outside rampart.

Parameters:

  | rampart_context | the rampart_context
  | env | pointer to environment struct,Must not be NULL.
  | prv_key | is a void buffer.

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_status_t rampart_context_set_prv_key_password | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env,
|  | axis2_char_t * | prv_key_password |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.
  | prv_key_password |

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_status_t rampart_context_set_prv_key_type | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env,
|  | axis2_key_type_t | type |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_status_t rampart_context_set_pwcb_function | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env,
|  | password_callback_fn | pwcb_function,
|  | void * | user_params |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.
  | pwcb_function |
  | ctx |

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_status_t rampart_context_set_rd_val | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env,
|  | axis2_char_t * | rd_val |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.
  | rd_val |

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_status_t rampart_context_set_rd_val_from_file | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_status_t rampart_context_set_receiver_cert_found_in_shp | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env,
|  | oxs_x509_cert_t * | cert |
| ) |  |  |

Set the found_cert_in_shp to rampart context.

Parameters:

  | rampart_context | Pointer to rampart context struct.
  | env | Pointer to environment struct
  | cert | pointer to the certficate

Returns:
  status of the operation

AXIS2_EXTERN axis2_status_t rampart_context_set_receiver_certificate | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env,
|  | void * | receiver_certificate |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  status of the op.

Parameters:

  | receiver_certificate | returns status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_status_t rampart_context_set_receiver_certificate_type | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env,
|  | axis2_key_type_t | type |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.
  | type |

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_status_t rampart_context_set_replay_detect_function | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env,
|  | rampart_is_replayed_fn | is_replayed_function,
|  | void * | user_params |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.
  | is_replayed_function |

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_status_t rampart_context_set_replay_detector | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env,
|  | void * | replay_detector |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.
  | replay_detector |

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_status_t rampart_context_set_saml_tokens | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env,
|  | axutil_array_list_t * | tokens |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.
  | tokens |

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_status_t rampart_context_set_sct_provider | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env,
|  | void * | sct_module |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.
  | sct_module |

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_status_t rampart_context_set_secpolicy | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env,
|  | rp_secpolicy_t * | secpolicy |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.
  | secpolicy |

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_status_t rampart_context_set_security_context_token_user_params | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env,
|  | void * | user_params |
| ) |  |  |

Set the user parameters used to invoke security context token related funtions

Parameters:

  | rampart_context | Pointer to rampart context struct.
  | env | Pointer to environment struct
  | user_params | pointer to user params

Returns:
  status of the operation

AXIS2_EXTERN axis2_status_t rampart_context_set_signature_session_key | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env,
|  | oxs_key_t * | session_key |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.
  | session_key |

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_status_t rampart_context_set_signature_token_id | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env,
|  | axis2_char_t * | sct_id,
|  | axis2_msg_ctx_t * | msg_ctx |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.
  | sct_id |

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_status_t rampart_context_set_store_security_context_token_fn | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env,
|  | store_security_context_token_fn | store_fn |
| ) |  |  |

Set the function used to store security context token

Parameters:

  | rampart_context | Pointer to rampart context struct.
  | env | Pointer to environment struct
  | store_fn | funtion pointer used to store sct

Returns:
  status of the operation

AXIS2_EXTERN axis2_status_t rampart_context_set_ttl | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env,
|  | int | ttl |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.
  | ttl |

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_status_t rampart_context_set_ttl_from_file | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_status_t rampart_context_set_user | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env,
|  | axis2_char_t * | user |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.
  | user |

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_status_t rampart_context_set_user_from_file | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env |
| ) |  |  |

Parameters:

  | rampart_context |
  | env | pointer to environment struct,Must not be NULL.

Returns:
  status of the op. AXIS2_SUCCESS on success and AXIS2_FAILURE on error

AXIS2_EXTERN axis2_status_t rampart_context_set_validate_security_context_token_fn | ( | rampart_context_t * | rampart_context,
|  | const axutil_env_t * | env,
|  | validate_security_context_token_fn | validate_fn |
| ) |  |  |

Set the function used to validate security context token

Parameters:

  | rampart_context | Pointer to rampart context struct.
  | env | Pointer to environment struct
  | validate_fn | funtion pointer used to validate sct

Returns:
  status of the operation