added UserHelper interface to allow dependency injection

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2025-07-08 23:17:36 +02:00
parent 4ba113daf5
commit c0b393a85b
2 changed files with 14 additions and 2 deletions

View File

@@ -0,0 +1,11 @@
package de.srsoftware.umbrella.core.api;
import com.sun.net.httpserver.HttpExchange;
import de.srsoftware.umbrella.core.UmbrellaException;
import de.srsoftware.umbrella.core.model.UmbrellaUser;
import java.util.Optional;
public interface UserHelper {
Optional<UmbrellaUser> loadUser(HttpExchange ex) throws UmbrellaException;
}