Annotation Interface ClientBasicAuth


@Target(TYPE) @Retention(RUNTIME) @Documented public @interface ClientBasicAuth
Used to make calls requiring HTTP Basic Auth.

An example method could look like the following:

 
 @ClientBasicAuth(username = "${service.username}", password = "${service.password}")
 public interface SomeClient {

 }
 
 
where service.username and service.password are configuration properties that must be set at runtime to the username and password that allow access to the service being called.
  • Element Details