public JmsConnectionCredentials getConnectionCredentials() {
synchronized (getDataLock()) {
String user = getProperty(CONNECTION_USER_NAME);
if (user != null) {
return new JmsConnectionCredentials(user, getProperty(CONNECTION_PASSWORD));
}
return null;
}
}