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

sdmxdl.web.spi.SdmxWebAuthenticator Maven / Gradle / Ivy

package sdmxdl.web.spi;

import nbbrd.design.ThreadSafe;
import nbbrd.service.Quantifier;
import nbbrd.service.ServiceDefinition;
import nbbrd.service.ServiceFilter;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
import sdmxdl.web.SdmxWebSource;

import java.io.IOException;
import java.net.PasswordAuthentication;

@ServiceDefinition(
        quantifier = Quantifier.MULTIPLE,
        loaderName = "internal.util.SdmxWebAuthenticatorLoader"
)
@ThreadSafe
public interface SdmxWebAuthenticator {

    @ServiceFilter
    boolean isAvailable();

    @Nullable
    PasswordAuthentication getPasswordAuthentication(@NonNull SdmxWebSource source) throws IOException;

    void invalidate(@NonNull SdmxWebSource source) throws IOException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy