All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.quarkus.rest.client.reactive.ClientBasicAuth Maven / Gradle / Ivy

There is a newer version: 3.17.0.CR1
Show newest version
package io.quarkus.rest.client.reactive;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Used to make calls requiring HTTP Basic Auth.
 * 

* * An example method could look like the following: * *

 * {@code
 * @ClientBasicAuth(username = "${service.username}", password = "${service.password}")
 * public interface SomeClient {
 *
 * }
 * }
 * 
* * where {@code service.username} and {@code service.password} are configuration properties that must be set at runtime * to the username and password that allow access to the service being called. */ @Target({ ElementType.TYPE }) @Retention(RetentionPolicy.RUNTIME) @Documented public @interface ClientBasicAuth { String username(); String password(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy