
com.hubspot.singularity.SingularityUserHolder Maven / Gradle / Ivy
The newest version!
package com.hubspot.singularity;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.base.Optional;
public class SingularityUserHolder {
private final Optional user;
private final boolean authenticated;
private final boolean authEnabled;
@JsonCreator
public SingularityUserHolder(@JsonProperty("user") Optional user,
@JsonProperty("authenticated") boolean authenticated,
@JsonProperty("authEnabled") boolean authEnabled) {
this.user = user;
this.authenticated = authenticated;
this.authEnabled = authEnabled;
}
public Optional getUser() {
return user;
}
public boolean isAuthenticated() {
return authenticated;
}
public boolean isAuthEnabled() {
return authEnabled;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy