User data source

Unica Platform uses user data sources to store sensitive information, such as API credentials, security tokens, database user credentials, etc. Plugins often need to store such configuration details. Content Integration provides the relevant configuration to specify the name of user data source and the associated Unica user while oboarding systems using Unica Platform configuration.

Use the ExecutionContext to obtain applicable user data source (credentials) by navigating through SystemConfig object:

executionContext.getSystemConfig().getDataSourceCredentials()

The DataSourceCredentials object returned by the getDataSourceCredentials method contains the selected data source based on the strategy set up for User credentials in Platform configuration. Hence, plugins need not make any logical decision pertaining to the right selection of the user data source.

Similarly, the getUnicaToken method called on SystemConfig object returns an UnicaToken object containing the Unica Token required for invoking APIs of Unica applications.