de.comhix.web.auth.internal.UserProviderImpl Maven / Gradle / Ivy
package de.comhix.web.auth.internal;
import de.comhix.web.auth.AuthenticationException;
import de.comhix.web.auth.UserProvider;
import java.util.Optional;
/**
* @author Benjamin Beeker
*/
public abstract class UserProviderImpl implements UserProvider {
@Override
public abstract Optional getUser();
@Override
public String getUserOrFail() {
return getUser().orElseThrow(AuthenticationException::new);
}
@Override
public abstract void setUser(String user);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy