io.deepsense.neptune.clientlibrary.config.user.StaticUserConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of neptune-client-library Show documentation
Show all versions of neptune-client-library Show documentation
Enables integration with Neptune in your Java code
/**
* Copyright (c) 2016, CodiLime Inc.
*/
package io.deepsense.neptune.clientlibrary.config.user;
import java.util.Optional;
public abstract class StaticUserConfiguration implements UserConfiguration {
private final String username;
private final String password;
protected StaticUserConfiguration(String username, String password) {
this.username = username;
this.password = password;
}
@Override
public Optional getUsername() {
return Optional.ofNullable(username);
}
@Override
public Optional getPassword() {
return Optional.ofNullable(password);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy