# oxs_key.h File Reference

represents a Key in OMXMLSecurity More...

`#include <axis2_defines.h>`
`#include <oxs_constants.h>`
`#include <oxs_buffer.h>`
`#include <axutil_env.h>`
`#include <rp_algorithmsuite.h>`

Go to the source code of this file.

## Defines
#define | OXS_KEY_USAGE_NONE 0
#define | OXS_KEY_USAGE_SESSION 1
#define | OXS_KEY_USAGE_SIGNATURE_SESSION 2
#define | OXS_KEY_USAGE_DERIVED 3
#define | OXS_KEY_DEFAULT_SIZE 64
## Typedefs
typedef struct oxs_key_t | oxs_key_t
## Functions
AXIS2_EXTERN unsigned char * | oxs_key_get_data (const oxs_key_t *key, const axutil_env_t *env)
AXIS2_EXTERN axis2_char_t * | oxs_key_get_name (const oxs_key_t *key, const axutil_env_t *env)
AXIS2_EXTERN axis2_char_t * | oxs_key_get_nonce (const oxs_key_t *key, const axutil_env_t *env)
AXIS2_EXTERN axis2_char_t * | oxs_key_get_label (const oxs_key_t *key, const axutil_env_t *env)
AXIS2_EXTERN int | oxs_key_get_size (const oxs_key_t *key, const axutil_env_t *env)
AXIS2_EXTERN int | oxs_key_get_usage (const oxs_key_t *key, const axutil_env_t *env)
AXIS2_EXTERN int | oxs_key_get_offset (const oxs_key_t *key, const axutil_env_t *env)
AXIS2_EXTERN int | oxs_key_get_length (const oxs_key_t *key, const axutil_env_t *env)
AXIS2_EXTERN axis2_status_t | oxs_key_set_name (oxs_key_t *key, const axutil_env_t *env, axis2_char_t *name)
AXIS2_EXTERN axis2_status_t | oxs_key_set_usage (oxs_key_t *key, const axutil_env_t *env, int usage)
AXIS2_EXTERN axis2_status_t | oxs_key_set_nonce (oxs_key_t *key, const axutil_env_t *env, axis2_char_t *nonce)
AXIS2_EXTERN axis2_status_t | oxs_key_set_label (oxs_key_t *key, const axutil_env_t *env, axis2_char_t *label)
AXIS2_EXTERN axis2_status_t | oxs_key_set_offset (oxs_key_t *key, const axutil_env_t *env, int offset)
AXIS2_EXTERN axis2_status_t | oxs_key_set_length (oxs_key_t *key, const axutil_env_t *env, int length)
AXIS2_EXTERN axis2_status_t | oxs_key_free (oxs_key_t *key, const axutil_env_t *env)
AXIS2_EXTERN axis2_status_t | oxs_key_populate_with_buf (oxs_key_t *key, const axutil_env_t *env, oxs_buffer_t *buffer, axis2_char_t *name, int usage)
AXIS2_EXTERN axis2_status_t | oxs_key_populate (oxs_key_t *key, const axutil_env_t *env, unsigned char *data, axis2_char_t *name, int size, int usage)
AXIS2_EXTERN axis2_status_t | oxs_key_read_from_file (oxs_key_t *key, const axutil_env_t *env, axis2_char_t *file_name)
AXIS2_EXTERN axis2_status_t | oxs_key_for_algo (oxs_key_t *key, const axutil_env_t *env, rp_algorithmsuite_t *key_algo)
AXIS2_EXTERN oxs_buffer_t * | oxs_key_get_buffer (const oxs_key_t *key, const axutil_env_t *env)
AXIS2_EXTERN oxs_key_t * | oxs_key_dup (oxs_key_t *key, const axutil_env_t *env)
AXIS2_EXTERN oxs_key_t * | oxs_key_create (const axutil_env_t *env)
AXIS2_EXTERN axis2_status_t | oxs_key_set_key_sha (oxs_key_t *key, const axutil_env_t *env, axis2_char_t *key_sha)
AXIS2_EXTERN axis2_char_t * | oxs_key_get_key_sha (const oxs_key_t *key, const axutil_env_t *env)

## Detailed Description

represents a Key in OMXMLSecurity