Knox Tizen Wearable SDK
password.h
1 /*
2  * Copyright (c) 2000-2017 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * PROPRIETARY/CONFIDENTIAL
5  *
6  * This software is the confidential and proprietary information of
7  * SAMSUNG ELECTRONICS ("Confidential Information").
8  * You shall not disclose such Confidential Information and shall
9  * use it only in accordance with the terms of the license agreement
10  * you entered into with SAMSUNG ELECTRONICS.
11  * SAMSUNG make no representations or warranties about the suitability
12  * of the software, either express or implied, including but not
13  * limited to the implied warranties of merchantability, fitness for
14  * a particular purpose, or non-infringement.
15  * SAMSUNG shall not be liable for any damages suffered by licensee as
16  * a result of using, modifying or distributing this software or its derivatives.
17  */
18 
19 #ifndef LIBMDM_MDM_PASSWORD_H
20 #define LIBMDM_MDM_PASSWORD_H
21 
22 #include "mdm_client_type.h"
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
38 typedef enum {
46 
53 typedef struct _password_policy {
54  int quality;
55  int min_length;
57  int expire;
64  char *pattern;
66 
67 
122 
177 
226 
276 
326 
376 
424 mdm_result_t mdm_set_password_pattern(char *p_pattern);
425 
492 mdm_result_t mdm_reset_password(char *p_password);
493 
549 
603 
647 
686 
729 
762 
806 
843 
893 
932 
984 mdm_result_t mdm_set_forbidden_strings(void *p_string_list);
985 
1032 
1037 #ifdef __cplusplus
1038 }
1039 #endif
1040 
1041 #endif // LIBMDM_MDM_PASSWORD_H
mdm_result_t mdm_set_min_password_complex_chars(int value)
API to set minimum complex char in password.
mdm_result_t mdm_get_maximum_character_occurrences(int *p_value)
API to get the maximum number of times a character can occur in the device password.
mdm_result_t mdm_set_forbidden_strings(void *p_string_list)
API to set strings which are forbidden in the device password.
mdm_result_t mdm_set_maximum_failed_password_for_wipe(int value)
API to set the maximum failed passwords, before device is wiped.
This structure is used to store GList.
mdm_result_t mdm_set_password_pattern(char *p_pattern)
API to set the required password pattern.
mdm_result_t mdm_delete_password_pattern(void)
API to remove all password patterns.
mdm_result_t mdm_set_password_quality(mdm_password_quality_t pwd_quality)
API to set password quality.
mdm_result_t mdm_get_maximum_numeric_sequences_length(int *p_value)
API to get the maximum numeric sequence length allowed in the device password.
mdm_password_quality_t
PASSWORD QUALITY.
Definition: password.h:38
mdm_result_t mdm_set_max_inactivity_time_device_lock(int value)
API to set the maximum time to lock.
mdm_data_t * mdm_get_password_pattern(void)
API to get password pattern.
mdm_result_t mdm_reset_password(char *p_password)
API to reset password.
void * forbidden_string_list
Definition: password.h:63
mdm_result_t mdm_set_password_history(int value)
API to set the number of previous passwords, that the user cannot use when prompted to change the pas...
mdm_result_t mdm_get_max_inactivity_time_device_lock(int *p_value)
API to get the maximum time to lock.
Password policy.
Definition: password.h:53
mdm_result_t mdm_set_maximum_numeric_sequences_length(int n_value)
API to set the maximum length of the numeric sequence which is allowed in the device password...
mdm_result_t mdm_set_password_minimum_length(int value)
API to set password's minimum length.
mdm_result_t
MDM API result.
mdm_result_t mdm_enforce_password_change(void)
API to enforce password change.
mdm_result_t mdm_set_maximum_character_occurrences(int n_value)
API to set the maximum number of times a character can occur in the device password.
mdm_data_t * mdm_get_password_policy(void)
API to get password policy.
mdm_result_t mdm_set_password_expires(int value)
API to set the number of days password expires.
mdm_data_t * mdm_get_forbidden_strings(void)
API to retrieve the forbidden strings which cannot be used in the device password.