How to hash IBM MobileFirst SQL adapter username password url and port in xml file?

后端 未结 1 1546
情歌与酒
情歌与酒 2021-01-16 16:25

I\'m using a IBM MobileFirst SQL adapter to get data from a AWS Oracle RDS.

In order to connect to the sql adapter, we need to provide the username, password, url an

相关标签:
1条回答
  • 2021-01-16 16:59

    First, you're using a very old build of 7.1 and your team should consider updating both the client and server versions.

    Second, just to clarify, you don't "connect to the sql adapter". Your client sends a request to the MobileFirst Server, to use the adapter in order to connect to the AWS Oracle RDS. It is the request of the adapter to the AWS that you want its properties hashed, or encrypted.

    As for encrypting properties, this depends on the application server you've installed MobileFirst Server on (WAS, WAS liberty, or Tomcat). In general, the process is as follows:

    • If you're using Tomcat, you can create a custom property in the worklight.properties file, encrypt it as instructed here and then re-deploy the .war file.

    • If you're using WAS or WAS liberty, you can also create such custom property in worklight.properties, and then expose it as a JNDI entry in the application server. You can then encrypt it using the encryption tools provided by each application server.

      See here for an example how to set it up: https://stackoverflow.com/a/25159260/1530814

      Once you have it setup, you can now take care of the encryption by following the documentation of the tool for your application server.

      • Encryption tools by each application server (search for "Encoding the JDNI properties")
    0 讨论(0)
提交回复
热议问题