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

internal.util.http.HttpAuthenticator Maven / Gradle / Ivy

There is a newer version: 3.0.0-beta.13
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy