USER PASSWORD PRINTING CONFIGURATION GUIDE

The User Password Printing Guide contains following:

Configure Password Encryption/Decryption Provider

Example:

package com.ofss.digx.app.sms.crypto;

public class CustomUserCryptographyProvider implements IUserCryptographyProvider {

@Override

public String decrypt(String value) {

// TODO Auto-generated method stub

return null;

}

@Override

public String encrypt(String value) {

// TODO Auto-generated method stub

return null;

}

}

Example:

<Preference name="UserConfig’" PreferencesProvider="com.ofss.digx.infra.config.impl.DBBasedPropertyProvider" parent="jdbcpreference" propertyFileName="select prop_id, prop_value from digx_fw_config_all_b where category_id = 'UserConfig’'" syncTimeInterval="36000000" />

Insert into DIGX_FW_CONFIG_ALL_B (PROP_ID, CATEGORY_ID, PROP_VALUE, FACTORY_SHIPPED_FLAG, PROP_COMMENTS, SUMMARY_TEXT, CREATED_BY, CREATION_DATE, LAST_UPDATED_BY, LAST_UPDATED_DATE, OBJECT_STATUS, OBJECT_VERSION_NUMBER)

values ('USER_CRYPTO_PROVIDER','UserConfig ','com.ofss.digx.app.sms.crypto.CustomUserCryptographyProvider ','N',null,'Custom provider for Password Encryption and decryption','ofssuser',sysdate,'ofssuser',sysdate,'A',1);

Note: If above configuration is done, it will use CustomUserCryptographyProvider for password encryption and decryption and same encrypted password will be stored in DIGX_UM_PWD_PRINTINFO table. Currently by default com.ofss.digx.app.sms.crypto.UserCryptographyProvider provider will used if no configuration is done.

Configure Password Printing adapter

Example:

package com.ofss.digx.app.sms.user.printinformation.provider;

import com.ofss.digx.app.sms.dto.user.printInformation.PasswordPrintInformationDTO;

import com.ofss.digx.infra.exceptions.Exception;

public class CustomUserInformationPrintAdapter implements IUserInformationPrintAdapter {

@Override

public void print(PasswordPrintInformationDTO userprintDTO) throws Exception {

// TODO Auto-generated method stub

}

}

Example:

<Preference name="UserPrintConfig’" PreferencesProvider="com.ofss.digx.infra.config.impl.DBBasedPropertyProvider" parent="jdbcpreference" propertyFileName="select prop_id, prop_value from digx_fw_config_all_b where category_id = 'UserPrintConfig’'" syncTimeInterval="36000000" />

Insert into DIGX_FW_CONFIG_ALL_B (PROP_ID, CATEGORY_ID, PROP_VALUE, FACTORY_SHIPPED_FLAG, PROP_COMMENTS, SUMMARY_TEXT, CREATED_BY, CREATION_DATE, LAST_UPDATED_BY, LAST_UPDATED_DATE, OBJECT_STATUS, OBJECT_VERSION_NUMBER)

values ('USER_INFORMATION_PRINT_PROVIDER','UserPrintConfig','com.ofss.digx.app.sms.user.printinformation.provider.CustomUserInformationPrintAdapter','N',null,'Custom adapter for User Password Information Printing','ofssuser',sysdate,'ofssuser',sysdate,'A',1);

Note: If above configuration is done, it will use CustomUserInformationPrintAdapter for user Password Information printing. Currently by default com.ofss.digx.app.sms.user.printinformation.provider.UserInformationPrintAdapter adapter will used if does not found any configuration.

 

 

Back