Package com.io7m.idstore.server.user_v1
Class IdU1HandlerCoreAuthenticated
java.lang.Object
com.io7m.idstore.server.user_v1.IdU1HandlerCoreAuthenticated
- All Implemented Interfaces:
IdHTTPHandlerFunctionalCoreType
public final class IdU1HandlerCoreAuthenticated
extends Object
implements IdHTTPHandlerFunctionalCoreType
A core that executes the given core under authentication.
-
Method Summary
Modifier and TypeMethodDescriptionexecute
(io.helidon.webserver.http.ServerRequest request, IdHTTPRequestInformation information) Execute the core.withAuthentication
(com.io7m.repetoir.core.RPServiceDirectoryType services, IdHTTPHandlerFunctionalCoreAuthenticatedType<IdSessionUser, IdUser> inCore)
-
Method Details
-
withAuthentication
public static IdHTTPHandlerFunctionalCoreType withAuthentication(com.io7m.repetoir.core.RPServiceDirectoryType services, IdHTTPHandlerFunctionalCoreAuthenticatedType<IdSessionUser, IdUser> inCore) - Parameters:
services
- The servicesinCore
- The executed core- Returns:
- A core that executes the given core under authentication
-
execute
public IdHTTPResponseType execute(io.helidon.webserver.http.ServerRequest request, IdHTTPRequestInformation information) Description copied from interface:IdHTTPHandlerFunctionalCoreType
Execute the core.- Specified by:
execute
in interfaceIdHTTPHandlerFunctionalCoreType
- Parameters:
request
- The requestinformation
- The request information- Returns:
- The response
-