return componentProvider.getComponent(TransportAuthenticationProvider.class, name);
} else if (TRANSPORT_AUTHENTICATION_PROVIDER_USER.equals(factory)) {
String username = PropertiesUtil.toString(properties.get(TRANSPORT_AUTHENTICATION_PROVIDER_USER_PROPERTY_USERNAME), "").trim();
String password = PropertiesUtil.toString(properties.get(TRANSPORT_AUTHENTICATION_PROVIDER_USER_PROPERTY_PASSWORD), "").trim();
return new UserCredentialsTransportAuthenticationProvider(username, password);
}
return null;
}