com.hubspot.singularity.auth.datastore.SingularityDisabledAuthDatastore Maven / Gradle / Ivy
package com.hubspot.singularity.auth.datastore;
import java.util.Optional;
import com.google.inject.Inject;
import com.google.inject.Singleton;
import com.hubspot.singularity.SingularityUser;
@Singleton
public class SingularityDisabledAuthDatastore implements SingularityAuthDatastore {
@Inject
public SingularityDisabledAuthDatastore() {}
@Override
public Optional getUser(String username) {
return Optional.empty();
}
@Override
public com.google.common.base.Optional isHealthy() {
return com.google.common.base.Optional.absent();
}
}