Detailed Description of SIN Validator

Tests the input string as a SIN (Social Insurance Number - Canadian personal ID) and verifies its validity. A valid SIN is a 9-digit number which fulfills a specific check sum. All non-digit characters that appear in the input string are removed before the actual validation - only digits are processed.


Top of page

Example: Example
<step id='alg' className='cz.adastra.cif.tasks.clean.ca.SINValidatorAlgorithm'>
        <binding name='sin' column='sin' />
        <binding name='sinOut' column='sin_out' />
        <properties>
                <omitInvalidSIN>true</omitInvalidSIN>
                <scorer explanationColumn='expl'>
                        <scoringEntries>
                                <scoringEntry key="SV_SIN_MISSING" score="500" explain="true" />
                                <scoringEntry key="SV_INVALID_LENGTH" score="300" explain="true" />
                                <scoringEntry key="SV_INVALID_CHECK" score="200" explain="true" />
                        </scoringEntries>
                </scorer>
        </properties>
</step>

iWay Software