|
Tizen HAL API
1.0
|
The Auth provides functions to handle the authentication per user.
#include <hal/hal-security-auth.h>
The Security Auth provides functions to handle the authentication per user.
The Security Auth functions provide methods to:
Typedefs | |
| typedef struct _hal_backend_security_auth_funcs | hal_backend_security_auth_funcs |
| Structure for security auth-fw functions. | |
| struct _hal_backend_security_auth_funcs |
Structure for security auth-fw functions.
Data Fields | |
| int(* | create_password_file )(uid_t user_id, hal_security_auth_password_type_e type) |
| int(* | write_memory_to_file )(uid_t user_id) |
| int(* | write_attempt_to_file )(uid_t user_id) |
| int(* | set_password )(uid_t user_id, const char *password) |
| int(* | check_password )(uid_t user_id, const char *password) |
| int(* | set_max_history_size )(uid_t user_id, unsigned int history_size) |
| int(* | get_max_history_size )(uid_t user_id, unsigned int *history_size) |
| int(* | get_expire_time )(uid_t user_id, unsigned int *expire_time) |
| int(* | set_expire_time )(uid_t user_id, unsigned int expire_time) |
| int(* | get_expire_time_left )(uid_t user_id, unsigned int *expire_time_left) |
| int(* | set_expire_time_left )(uid_t user_id, unsigned int expire_time_left) |
| int(* | get_attempt )(uid_t user_id, unsigned int *attempt) |
| int(* | reset_attempt )(uid_t user_id) |
| int(* | increment_attempt )(uid_t user_id) |
| int(* | get_max_attempt )(uid_t user_id, unsigned int *max_attempt) |
| int(* | set_max_attempt )(uid_t user_id, unsigned int max_attempt) |
| int(* | is_password_active )(uid_t user_id) |
| int(* | is_password_reused )(uid_t user_id, const char *password) |
| int(* | check_expiration )(uid_t user_id) |
| int(* | check_attempt_exceeded )(uid_t user_id) |
| int(* | is_ignore_period )(uid_t user_id) |
| int(* | is_history_active )(uid_t user_id) |
| int(* | get_password_type )(uid_t user_id, hal_security_auth_password_type_e *password_type) |
| int(* _hal_backend_security_auth_funcs::check_attempt_exceeded)(uid_t user_id) |
Check if the accumulated attempt number for user's password auth try exceeds the limited maximum attempt
| int(* _hal_backend_security_auth_funcs::check_expiration)(uid_t user_id) |
Check if the password auth context has expired
| int(* _hal_backend_security_auth_funcs::check_password)(uid_t user_id, const char *password) |
Check if the entered password auth context is the same as the current password
| int(* _hal_backend_security_auth_funcs::create_password_file)(uid_t user_id, hal_security_auth_password_type_e type) |
Create password file
| int(* _hal_backend_security_auth_funcs::get_attempt)(uid_t user_id, unsigned int *attempt) |
Get the accumulated attempt number for user's password auth tries
| int(* _hal_backend_security_auth_funcs::get_expire_time)(uid_t user_id, unsigned int *expire_time) |
Get the expire time period in days
| int(* _hal_backend_security_auth_funcs::get_expire_time_left)(uid_t user_id, unsigned int *expire_time_left) |
Get the expire time left in seconds
| int(* _hal_backend_security_auth_funcs::get_max_attempt)(uid_t user_id, unsigned int *max_attempt) |
Get the limited maximum attempt number of user's password auth tries
| int(* _hal_backend_security_auth_funcs::get_max_history_size)(uid_t user_id, unsigned int *history_size) |
Get the maximum number of history size
| int(* _hal_backend_security_auth_funcs::get_password_type)(uid_t user_id, hal_security_auth_password_type_e *password_type) |
Get the password type regarding to user_id
| int(* _hal_backend_security_auth_funcs::increment_attempt)(uid_t user_id) |
Increase the accumulated attempt number for user's password auth tries
| int(* _hal_backend_security_auth_funcs::is_history_active)(uid_t user_id) |
Check if the history for storing the previous password context is activated
| int(* _hal_backend_security_auth_funcs::is_ignore_period)(uid_t user_id) |
Check if the new attempt interval elapsed the ignore period(ex. RETRY_TIMEOUT = 0.5 secs)
| int(* _hal_backend_security_auth_funcs::is_password_active)(uid_t user_id) |
Get the active status of user's password auth context
| int(* _hal_backend_security_auth_funcs::is_password_reused)(uid_t user_id, const char *password) |
Check if the entered password context has the previously-used history
| int(* _hal_backend_security_auth_funcs::reset_attempt)(uid_t user_id) |
Reset the accumulated attempt number for user's password auth tries
| int(* _hal_backend_security_auth_funcs::set_expire_time)(uid_t user_id, unsigned int expire_time) |
Set the expire time period in days
| int(* _hal_backend_security_auth_funcs::set_expire_time_left)(uid_t user_id, unsigned int expire_time_left) |
Set the expire time left in seconds
| int(* _hal_backend_security_auth_funcs::set_max_attempt)(uid_t user_id, unsigned int max_attempt) |
Set the limited maximum attempt number of user's password auth tries
| int(* _hal_backend_security_auth_funcs::set_max_history_size)(uid_t user_id, unsigned int history_size) |
Set the maximum number of history size to store password context in the past
| int(* _hal_backend_security_auth_funcs::set_password)(uid_t user_id, const char *password) |
Set a new password auth context
| int(* _hal_backend_security_auth_funcs::write_attempt_to_file)(uid_t user_id) |
Write the number of attempts to enter password auth till now
| int(* _hal_backend_security_auth_funcs::write_memory_to_file)(uid_t user_id) |
Write password auth parameters from memory to file
| typedef struct _hal_backend_security_auth_funcs hal_backend_security_auth_funcs |
Structure for security auth-fw functions.
Return Codes exported by the hal-security-auth functions.
Enumeration for auth password type.