Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

Secure fields may be stored in the database in encrypted form. An OJB converter will be created to decrypt/encrypt going from and to the database. This converter must be specified in the OJB field-descriptor tag for the field, like so:

Code Block
xml
xml
titleorg.kuali.module.financial.OJB-repository-financial.xmlxml
<descriptor-repository version="1.0">
    ...
    <class-descriptor class="org.kuali.module.financial.bo.Payee" table="FP_DV_PAYEE_T">
        ...
        <field-descriptor name="taxIdNumber" column="DV_TAX_ID_NBR" jdbc-type="VARCHAR" index="true" 
   conversion="org.kuali.core.util.OjbKualiEncryptDecryptFieldConversion" />
        ...
    <class-descriptor>
</descriptor-repository>

...

All encryption is done through a core service. The various points in the frameworks will call this central service for the actual encrypting/decrypting. Institutions wishing for different encryption algorithms can simply override the encryptionService Spring bean. For example, say you want to turn off encryption for development purposes, you can just add the following to your override Spring beans file....

Code Block
xml
xml
titleedu.sampleu.kuali.SampleuSpringBeans.xmlxml
<bean id="encryptionService" class="org.kuali.core.service.impl.NoEncryptionEncryptionServiceImpl" />

...