Key Manager
[OMXMLSecurity]


Functions

AXIS2_EXTERN axis2_status_t oxs_key_mgr_load_key (const axutil_env_t *env, oxs_asym_ctx_t *ctx, axis2_char_t *password)
AXIS2_EXTERN openssl_pkey_toxs_key_mgr_load_private_key_from_string (const axutil_env_t *env, axis2_char_t *pem_buf, axis2_char_t *password)
AXIS2_EXTERN openssl_pkey_toxs_key_mgr_load_private_key_from_pem_file (const axutil_env_t *env, axis2_char_t *file_name, axis2_char_t *password)
AXIS2_EXTERN oxs_x509_cert_t * oxs_key_mgr_load_x509_cert_from_string (const axutil_env_t *env, axis2_char_t *pem_buf)
AXIS2_EXTERN oxs_x509_cert_t * oxs_key_mgr_load_x509_cert_from_pem_file (const axutil_env_t *env, axis2_char_t *filename)
AXIS2_EXTERN axis2_status_t oxs_key_mgr_read_pkcs12_key_store (const axutil_env_t *env, axis2_char_t *pkcs12_file, axis2_char_t *password, oxs_x509_cert_t **cert, openssl_pkey_t **prv_key)

Function Documentation

AXIS2_EXTERN axis2_status_t oxs_key_mgr_load_key ( const axutil_env_t *  env,
oxs_asym_ctx_t *  ctx,
axis2_char_t *  password 
)

Loads keys/certificates from a keystore or a PEm file depending on information available in the pointer to the OMXMLSec asymmetric encryption context struct pointer to environment struct the password for the key store

Returns:
AXIS2_SUCCESS on success, else AXIS2_FAILURE

AXIS2_EXTERN openssl_pkey_t* oxs_key_mgr_load_private_key_from_pem_file ( const axutil_env_t *  env,
axis2_char_t *  file_name,
axis2_char_t *  password 
)

Loads a private key from a file (in PEM format) pointer to environment struct the name of the file the passowrd for the file

Returns:
the generated key

AXIS2_EXTERN openssl_pkey_t* oxs_key_mgr_load_private_key_from_string ( const axutil_env_t *  env,
axis2_char_t *  pem_buf,
axis2_char_t *  password 
)

Loads a private key from a string buffer which of PEM format. -----BEGIN RSA PRIVATE KEY----- -----END RSA PRIVATE KEY----- pointer to environment struct the string buffer which of PEM format the password for the key file

Returns:
the generated key

AXIS2_EXTERN oxs_x509_cert_t* oxs_key_mgr_load_x509_cert_from_pem_file ( const axutil_env_t *  env,
axis2_char_t *  filename 
)

Loads an X509 certificate from a file pointer to environment struct the name of the file

Returns:
the generated X509 certificate

AXIS2_EXTERN oxs_x509_cert_t* oxs_key_mgr_load_x509_cert_from_string ( const axutil_env_t *  env,
axis2_char_t *  pem_buf 
)

Loads an X509 certificate from a string buffer -----BEGIN CERTIFICATE----- -----END CERTIFICATE----- pointer to environment struct PEM formatted string buffer

Returns:
the generated X509 certificate

AXIS2_EXTERN axis2_status_t oxs_key_mgr_read_pkcs12_key_store ( const axutil_env_t *  env,
axis2_char_t *  pkcs12_file,
axis2_char_t *  password,
oxs_x509_cert_t **  cert,
openssl_pkey_t **  prv_key 
)

Read a PKCS12 key store and populate a key and a certificate. pointer to environment struct name of the pkcs12 file password for the key/certificate pair in the key store the certificate the private key

Returns:
the generated X509 certificate


Generated on Thu Oct 4 17:37:09 2007 for Rampart/C by  doxygen 1.4.7