Optim Data Privacy Providers  11.7.0
 All Data Structures Files Functions Variables Macros Groups Pages
Collaboration diagram for Specific Parameters:

Italy National ID Specific Parameters

The following defines are associated with the usParameterID member of DP_INIT_OP_DEF structure.

#define ODPP_OPR_NID_IT_PARTS   NIDOPERANDBASE + 2
 
#define ODPP_OPR_NID_IT_SEP   NIDOPERANDBASE + 8
 

Values for parameter ODPP_OPR_NID_IT_PARTS

#define ODPP_IT_PARTS_MASK_NAME   1
 
#define ODPP_IT_PARTS_MASK_BIRTH_DATE   2
 
#define ODPP_IT_PARTS_MASK_REGION   4
 

Detailed Description

Macro Definition Documentation

#define ODPP_OPR_NID_IT_PARTS   NIDOPERANDBASE + 2
  • Use:
    This parameter is used to specify the subfield(s) to be masked.
  • Optional:
    Yes.
    By default the Birth Date and Region fields will be masked.
  • Exclusive:
    N/A
  • Specification Protocol:
    The parameter is specified in the usParameterID member of the DP_INIT_OP_DEF structure during Provider_Init(). Its value is specified in the uiVal member of the DP_INIT_OP_DEF structure.

    Multiple values can be specified by ORing them together as shown below:
    uiVal = <value 1> | <value 2> | ... | <value n> ;
  • Example:
    • ODPP_OPR_NID_IT_PARTS = ODPP_IT_PARTS_MASK_NAME
    • ODPP_OPR_NID_IT_PARTS = ODPP_IT_PARTS_MASK_NAME | ODPP_IT_PARTS_MASK_BIRTH_DATE
#define ODPP_OPR_NID_IT_SEP   NIDOPERANDBASE + 8
  • Use:
    This parameter is used to specify the separator to be used for the resultant Italian Fiscal Code number (CF).
  • Description:
    This parameter specifies the separator to be used for the resultant CF number.

    The following are the formats for CF:
    • FFFNNNYYMDDRRRRC
    • FFF-NNN-YYMDD-RRRRC
    • FFF NNN YYMDD RRRRC

    The valid values for this parameter are:
    For the Mask method, the default is to use the same separator as the source for the resultant values. For the Random method, the default is to generate the resultant values without a separator. The separator values are mutually exclusive with each other.
  • Optional:
    Yes
  • Exclusive:
    N/A
  • Inclusive:
    N/A
  • Example:
    • ODPP_OPR_NID_IT_SEP = ODPP_SEP_DASH
#define ODPP_IT_PARTS_MASK_NAME   1
  • Use:
    Mask the name field of the source Italian Fiscal Code number (CF).
  • Description:
    When this value is specified for parameter ODPP_OPR_NID_IT_PARTS, the first six digits representing the first and last name are masked while generating the resultant CF number.
  • Optional:
    Yes
  • Exclusive:
    N/A
  • Inclusive:
    N/A
  • Example:
    • ODPP_OPR_NID_IT_PARTS = ODPP_IT_PARTS_MASK_NAME
#define ODPP_IT_PARTS_MASK_BIRTH_DATE   2
  • Use:
    Mask the birth date field of the source Italian Fiscal Code number (CF).
  • Description:
    When this value is specified for parameter ODPP_OPR_NID_IT_PARTS, the birth date field is masked while generating the resultant CF number.
  • Optional:
    Yes
  • Exclusive:
    N/A
  • Inclusive:
    N/A
  • Example:
    • ODPP_OPR_NID_IT_PARTS = ODPP_IT_PARTS_MASK_BIRTH_DATE
    • ODPP_OPR_NID_IT_PARTS = ODPP_IT_PARTS_MASK_NAME | ODPP_IT_PARTS_MASK_BIRTH_DATE
#define ODPP_IT_PARTS_MASK_REGION   4
  • Use:
    Mask the region field of the source Italian Fiscal Code number (CF).
  • Description:
    When this value is specified for parameter ODPP_OPR_NID_IT_PARTS, the region field is masked while generating the resultant CF number.
  • Optional:
    Yes
  • Exclusive:
    N/A
  • Inclusive:
    N/A
  • Example:
    • ODPP_OPR_NID_IT_PARTS = ODPP_IT_PARTS_MASK_REGION
    • ODPP_OPR_NID_IT_PARTS = ODPP_IT_PARTS_MASK_NAME | ODPP_IT_PARTS_MASK_REGION