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

io.deepsense.neptune.clientlibrary.config.user.StaticUserConfiguration Maven / Gradle / Ivy

There is a newer version: 1.6.1
Show newest version
/**
 * 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