[id='credential-keystore-references_{context}']
= Credential keystore references

After you add credential keystores to {brandname} Server you can reference them in connection configurations.

[discrete]
== Datasource connections

.XML
[source,xml,options="nowrap",subs=attributes+,role="primary"]
----
include::xml/server_credentials_datasource.xml[]
----

.JSON
[source,json,options="nowrap",subs=attributes+,role="secondary"]
----
include::json/server_credentials_datasource.json[]
----

.YAML
[source,yaml,options="nowrap",subs=attributes+,role="secondary"]
----
include::yaml/server_credentials_datasource.yaml[]
----

[discrete]
== LDAP connections

.XML
[source,xml,options="nowrap",subs=attributes+,role="primary"]
----
include::xml/server_credentials_ldap.xml[]
----

.JSON
[source,json,options="nowrap",subs=attributes+,role="secondary"]
----
include::json/server_credentials_ldap.json[]
----

.YAML
[source,yaml,options="nowrap",subs=attributes+,role="secondary"]
----
include::yaml/server_credentials_ldap.yaml[]
----
