Class TableBasedAuthenticationModule
java.lang.Object
com.kingsrook.qqq.backend.core.modules.authentication.implementations.TableBasedAuthenticationModule
- All Implemented Interfaces:
QAuthenticationModuleInterface
public class TableBasedAuthenticationModule
extends Object
implements QAuthenticationModuleInterface
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateSession
(QInstance qInstance, Map<String, String> context) static StateProviderInterface
Load an instance of the appropriate state providerboolean
isSessionValid
(QInstance instance, QSession session) boolean
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.kingsrook.qqq.backend.core.modules.authentication.QAuthenticationModuleInterface
createAutomatedSessionForUser, getLoginRedirectUrl
-
Field Details
-
ID_TOKEN_VALIDATION_INTERVAL_SECONDS
public static final int ID_TOKEN_VALIDATION_INTERVAL_SECONDS//////////////////////////////////////////////////////////////////////////////////////////////////////////- See Also:
-
SESSION_ID_KEY
- See Also:
-
BASIC_AUTH_KEY
- See Also:
-
SESSION_ID_NOT_PROVIDED_ERROR
- See Also:
-
-
Constructor Details
-
TableBasedAuthenticationModule
public TableBasedAuthenticationModule()
-
-
Method Details
-
usesSessionIdCookie
public boolean usesSessionIdCookie()- Specified by:
usesSessionIdCookie
in interfaceQAuthenticationModuleInterface
-
createSession
public QSession createSession(QInstance qInstance, Map<String, String> context) throws QAuthenticationException- Specified by:
createSession
in interfaceQAuthenticationModuleInterface
- Throws:
QAuthenticationException
-
isSessionValid
- Specified by:
isSessionValid
in interfaceQAuthenticationModuleInterface
-
getStateProvider
Load an instance of the appropriate state provider
-