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

nbbrd.io.http.HttpAuthenticator Maven / Gradle / Ivy

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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy