Hi, you might need to implement your own custom supplier, possibly extending BasicAuthSupplier

Thanks, Sergey
On 24/06/15 03:43, Talkov, Roger wrote:
We have Basic Authentication working for the dynamic client with user & 
password,
But have not been able to figure out how to set Host, Port, and Realm.

Our current code is similar to below:

HTTPConduit httpc = (HTTPConduit) client.getConduit();

AuthorizationPolicy authorizationPolicy = new AuthorizationPolicy();
authorizationPolicy.setUserName (user);
authorizationPolicy.setPassword (password);
authorizationPolicy.setAuthorizationType ("Basic");
httpc.setAuthorization(authorizationPolicy);

   // does Base64 encoding of user & password
BasicAuthSupplier authSupplier = new BasicAuthSupplier 
(isPreemptiveAuthentication ());
httpc.setAuthSupplier(authSupplier);

Thanks,

Roger


This email (including any attachments) may contain information which is 
privileged, confidential, or protected. If you are not the intended recipient, 
note that any disclosure, copying, distribution, or use of the contents of this 
message and attached files is prohibited. If you have received this email in 
error, please notify the sender and delete this email and any attached files.


Reply via email to