[
https://issues.apache.org/activemq/browse/CAMEL-2138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=55190#action_55190
]
Willem Jiang commented on CAMEL-2138:
-------------------------------------
I just found the NTCredential and UsernamePasswordCredentials aren't
interchangeable.
As NTCredential can't accept null of the Domain and Host in it's construction
{code}
public NTCredentials(String userName, String password, String host,
String domain) {
super(userName, password);
if (domain == null) {
throw new IllegalArgumentException("Domain may not be null");
}
this.domain = domain;
if (host == null) {
throw new IllegalArgumentException("Host may not be null");
}
this.host = host;
}
{code}
> Use NTCredentials instead of UsernamePasswordCredentials for HttpClient
> authentication
> --------------------------------------------------------------------------------------
>
> Key: CAMEL-2138
> URL: https://issues.apache.org/activemq/browse/CAMEL-2138
> Project: Apache Camel
> Issue Type: Improvement
> Components: camel-http
> Affects Versions: 2.0.0
> Reporter: Stan Lewis
> Assignee: Willem Jiang
> Priority: Minor
> Attachments: patch.txt
>
>
> To use NTLM with HttpClient you've got to supply NTCredentials instead of
> UsernamePasswordCredentials. Luckily they're interchangeable, this patch
> changes that and adds a "domain" and a "proxyDomain" option so users can
> supply their NT domain to either the proxy or the server.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.