internal.util.http.HttpAuthenticator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdmx-dl-provider-ri Show documentation
Show all versions of sdmx-dl-provider-ri Show documentation
Easily download official statistics - RI
package internal.util.http;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
import java.net.PasswordAuthentication;
import java.net.URL;
public interface HttpAuthenticator {
@Nullable PasswordAuthentication getPasswordAuthentication(@NonNull URL url);
void invalidate(@NonNull URL url);
static @NonNull HttpAuthenticator noOp() {
return HttpImpl.Authenticators.NONE;
}
}