nbbrd.io.http.HttpAuthenticator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-io-http Show documentation
Show all versions of java-io-http Show documentation
Common IO utilities - http
The newest version!
package nbbrd.io.http;
import lombok.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;
}
}