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

Canada National ID Specific Parameters

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

#define ODPP_OPR_NID_CA_PARTS   NIDOPERANDBASE + 5
 
#define ODPP_OPR_NID_CA_SEP   NIDOPERANDBASE + 11
 

Values for parameter ODPP_OPR_NID_CA_PARTS

#define ODPP_CA_PARTS_MASK_HEAD   1
 

Detailed Description

Macro Definition Documentation

#define ODPP_OPR_NID_CA_PARTS   NIDOPERANDBASE + 5
  • Use:
    This parameter is used to specify the subfield(s) to be masked.
  • Description:
    This parameter can be used to specify one or more subfields in the source Canadian Social Insurance Number (SIN) to be masked.

    The following value is valid for this parameter:
  • Optional:
    Yes
  • Exclusive:
    N/A
  • Example:
    • ODPP_OPR_NID_CA_PARTS = ODPP_CA_PARTS_MASK_HEAD
#define ODPP_OPR_NID_CA_SEP   NIDOPERANDBASE + 11
  • Use:
    This parameter is used to specify the separator to be used for the resultant Canadian Social Insurance Number (SIN).
  • Description:
    This parameter specifies the separator to be used for the resultant Canada National ID. A Canadian Social Insurance Number can be separated into three subfields of three digits each.

    Valid separator values 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_CA_SEP = ODPP_SEP_DASH
#define ODPP_CA_PARTS_MASK_HEAD   1
  • Use:
    Mask the header of the source Canadian Social Insurance Number (SIN).
  • Description:
    When this value is specified for parameter ODPP_OPR_NID_CA_PARTS, the first three digits (header) of the source SIN are also masked while generating the resultant SIN.
  • Optional:
    Yes
  • Exclusive:
    N/A
  • Inclusive:
    N/A
  • Example:
    • ODPP_OPR_NID_CA_PARTS = ODPP_CA_PARTS_MASK_HEAD