Class IdAdminLoginService
java.lang.Object
com.io7m.idstore.server.controller.admin.IdAdminLoginService
- All Implemented Interfaces:
- com.io7m.repetoir.core.RPServiceType
public final class IdAdminLoginService
extends Object
implements com.io7m.repetoir.core.RPServiceType
A service that handles the logic for admin logins.
- 
Constructor SummaryConstructorsConstructorDescriptionIdAdminLoginService(IdServerClock inClock, IdStrings inStrings, IdSessionAdminService inSessions, IdRateLimitAdminLoginServiceType inRateLimit, IdEventServiceType inEvents) A service that handles the logic for admin logins.
- 
Method SummaryModifier and TypeMethodDescriptionadminLogin(IdDatabaseTransactionType transaction, UUID requestId, String remoteHost, String username, String password, Map<String, String> metadata) Try logging in.toString()
- 
Constructor Details- 
IdAdminLoginServicepublic IdAdminLoginService(IdServerClock inClock, IdStrings inStrings, IdSessionAdminService inSessions, IdRateLimitAdminLoginServiceType inRateLimit, IdEventServiceType inEvents) A service that handles the logic for admin logins.- Parameters:
- inClock- The clock
- inStrings- The string resources
- inSessions- A session service
- inRateLimit- The rate limit service
- inEvents- The event service
 
 
- 
- 
Method Details- 
adminLoginpublic IdAdminLoggedIn adminLogin(IdDatabaseTransactionType transaction, UUID requestId, String remoteHost, String username, String password, Map<String, String> metadata) throws IdCommandExecutionFailureTry logging in. Create a new session if logging in succeeds, or raise an exception if the login cannot proceed for any reason (invalid credentials, banned user, etc).- Parameters:
- transaction- A database transaction
- requestId- The ID of the request
- remoteHost- The remote remoteHost attempting to log in
- username- The username
- password- The password
- metadata- The request metadata
- Returns:
- A login record
- Throws:
- IdCommandExecutionFailure- On errors
 
- 
description- Specified by:
- descriptionin interface- com.io7m.repetoir.core.RPServiceType
 
- 
toString
 
-