java.lang.Object
nl.andrewl.concord_server.client.AuthenticationService
This authentication service provides support for managing the client's
authentication status, such as registering new clients, generating tokens,
and logging in.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ConcordServer
private final org.dizitart.no2.NitriteCollection
private final org.dizitart.no2.NitriteCollection
-
Constructor Summary
ConstructorsConstructorDescriptionAuthenticationService
(ConcordServer server, org.dizitart.no2.NitriteCollection userCollection) -
Method Summary
Modifier and TypeMethodDescriptionorg.dizitart.no2.Document
findAndAuthenticateUser
(nl.andrewl.concord_core.msg.types.client_setup.ClientLogin login) org.dizitart.no2.Document
findAndAuthenticateUser
(nl.andrewl.concord_core.msg.types.client_setup.ClientSessionResume sessionResume) generateSessionToken
(UUID userId) registerNewClient
(nl.andrewl.concord_core.msg.types.client_setup.ClientRegistration registration) registerPendingClient
(nl.andrewl.concord_core.msg.types.client_setup.ClientRegistration registration) void
-
Field Details
-
userCollection
private final org.dizitart.no2.NitriteCollection userCollection -
sessionTokenCollection
private final org.dizitart.no2.NitriteCollection sessionTokenCollection -
server
-
-
Constructor Details
-
AuthenticationService
public AuthenticationService(ConcordServer server, org.dizitart.no2.NitriteCollection userCollection)
-
-
Method Details
-
registerNewClient
public ClientConnectionData registerNewClient(nl.andrewl.concord_core.msg.types.client_setup.ClientRegistration registration) -
registerPendingClient
public UUID registerPendingClient(nl.andrewl.concord_core.msg.types.client_setup.ClientRegistration registration) -
findAndAuthenticateUser
public org.dizitart.no2.Document findAndAuthenticateUser(nl.andrewl.concord_core.msg.types.client_setup.ClientLogin login) -
findAndAuthenticateUser
public org.dizitart.no2.Document findAndAuthenticateUser(nl.andrewl.concord_core.msg.types.client_setup.ClientSessionResume sessionResume) -
generateSessionToken
-
removeExpiredSessionTokens
public void removeExpiredSessionTokens()
-