Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
3.1.5
-
None
-
None
-
Unknown
Description
CXF should provide an easy way to configure the basic authentication for a JAXRS client programmatically, e.g.:
Client client = ClientBuilder.newClient().register(new java.net.Authenticator() { @Override protected PasswordAuthentication getPasswordAuthentication() { return new PasswordAuthentication("myuser", "mypassword".toCharArray()); } });
See also: http://stackoverflow.com/questions/25155017/client-side-authentication-with-jax-rs-and-cxf