You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
454 B
15 lines
454 B
/* © SRSoftware 2024 */ |
|
package de.srsoftware.oidc.api; |
|
|
|
import de.srsoftware.oidc.api.data.Session; |
|
import de.srsoftware.oidc.api.data.User; |
|
import java.time.Duration; |
|
import java.util.Optional; |
|
|
|
public interface SessionService { |
|
Session createSession(User user); |
|
SessionService dropSession(String sessionId); |
|
Session extend(String sessionId); |
|
Optional<Session> retrieve(String sessionId); |
|
SessionService setDuration(Duration duration); |
|
}
|
|
|