kv_create_password_credentials()

#include <kvstore.h>

kv_error_t 
kv_create_password_credentials(kv_impl_t *impl,
                 const char *username,
                 const char *password,
                 kv_credentials_t **creds) 

Creates a credentials structure with the username/password pair that you want to use to authenticate to a store. These credentials are used with kv_open_store_login() or kv_store_login().

Release these credentials using kv_release_credentials().

Parameters

impl

The impl parameter is the implementation structure you are using for the library. It is created using kv_create_jni_impl().

username

The username parameter is the username you want to use for store authentication.

password

The password parameter is the password parameter is the user's password.

creds

The creds parameter references memory into which is passed the allocated kv_credentials_t structure.

See Also

Store and Library Operations