spring-framework / org.springframework.jms.connection / UserCredentialsConnectionFactoryAdapter / setCredentialsForCurrentThread

setCredentialsForCurrentThread

open fun setCredentialsForCurrentThread(username: String, password: String): Unit

Set user credententials for this proxy and the current thread. The given username and password will be applied to all subsequent createConnection() calls on this ConnectionFactory proxy.

This will override any statically specified user credentials, that is, values of the "username" and "password" bean properties.

Parameters

username - the username to apply

password - the password to apply

See Also
#removeCredentialsFromCurrentThread