How to enable password protection for UIN pdf

  • To enable password protection for UIN pdf file:

Add the property mosip.print.service.uincard.pdf.password.enable=true in the print-default.properties file on the mosip-config project.


Add the property mosip.print.service.uincard.password=fullName|dateOfBirth to define the password pattern, as an example the combination of fullName & dateOfBirth given as default password and first 4 chars of each field will be concatenated and considered as actual password.


And finally, the password will be considered as illustrated in the below example.
Example: fullName|dateOfBirth
fullName=Mec IIITB & dateOfBirth= 1999\01\01 with this example the password will be “MecI1999”, ignoring all the special chars.

here first 4 chars of fullName (MecI) and first 4 chars of dateOfBirth (1999).

Note: If the fullNamelength is less than 4 then the name letters will be repeated to match the length 4.

  • To change the password fields:

mosip.print.service.uincard.password=fullName|dateOfBirth

The password fields(“fullName|dateOfBirth") can be changed to use any one or more combination of fields mentioned in the identity-mapping.json file on the mosip-config project.