Page History
...
<property name="hibernate.sos.credential_store_file">
=> path to the Credential Store file<property name="hibernate.sos.credential_store_key_file">
=> path of the key file for the Credential Store<property name="hibernate.sos.credential_store_password">
=> password of the Credential Store file<property name="hibernate.sos.credential_store_entry_path">
=> folder hierarchy and entry name in the Credentials Store file
Example for Hibernate Configuration File
A Hibernate configuration file using a reference to the Credential Store and the short syntax for credential references can look like this:
Code Block | ||||
---|---|---|---|---|
| ||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<hibernate-configuration>
<session-factory>
<property name="hibernate.sos.credential_store_file">./config/jobs.kdbx</property>
<property name="hibernate.sos.credential_store_key">./config/private/jobs.key</property>
<property name="hibernate.connection.driver_class">org.mariadb.jdbc.Driver</property>
<property name="hibernate.connection.password">cs://jobs/mysql/mysql-5-7@password</property>
<property name="hibernate.connection.url">cs://jobs/mysql/mysql-5-7@url</property>
<property name="hibernate.connection.username">cs://jobs/mysql/mysql-5-7@user</property>
<property name="hibernate.dialect">org.hibernate.dialect.MySQLInnoDBDialect</property>
<property name="hibernate.show_sql">false</property>
<property name="hibernate.connection.autocommit">false</property>
<property name="hibernate.format_sql">true</property>
<property name="hibernate.temp.use_jdbc_metadata_defaults">false</property>
<!-- Hikari Connection Pool -->
<property name="hibernate.connection.provider_class">org.hibernate.hikaricp.internal.HikariCPConnectionProvider</property>
<property name="hibernate.hikari.maximumPoolSize">10</property>
</session-factory>
</hibernate-configuration> |
Explanation:
<property name="hibernate.sos.credential_store_file">
specifies the location of the Credential Store database file.<property name="hibernate.sos.credential_store_key">
specifies the location of the Credential Store key file. In this example the key file is stored with a location different to the database file and therefore has to be specified. If the key file is available from the same folder as the database file and makes use of the same base name then this parameter can be omitted.
Use with Arguments
References to a Credential Store can be directly specified from arguments. This applies to the following JITL Database Jobs:
...
Overview
Content Tools