![JAR search and dependency download from the Maven repository](/logo.png)
internal.sdmxdl.cli.ConstantAuthenticator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdmx-dl-cli Show documentation
Show all versions of sdmx-dl-cli Show documentation
Easily download official statistics - CLI
The newest version!
package internal.sdmxdl.cli;
import lombok.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
import sdmxdl.web.WebSource;
import sdmxdl.web.spi.Authenticator;
import java.net.PasswordAuthentication;
@lombok.AllArgsConstructor
final class ConstantAuthenticator implements Authenticator {
private final PasswordAuthentication user;
@Override
public @NonNull String getAuthenticatorId() {
return "CONSTANT";
}
@Override
public boolean isAuthenticatorAvailable() {
return true;
}
@Override
public @Nullable PasswordAuthentication getPasswordAuthenticationOrNull(@NonNull WebSource source) {
return user;
}
@Override
public void invalidateAuthentication(@NonNull WebSource source) {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy