Package org.restheart.security.services
Class RndTokenService
java.lang.Object
org.restheart.security.services.RndTokenService
- All Implemented Interfaces:
ConfigurablePlugin,ExchangeTypeResolver<JsonRequest,,JsonResponse> HandlingPlugin<JsonRequest,,JsonResponse> JsonService,Plugin,Service<JsonRequest,JsonResponse>
allows to get and invalidate the user auth token generated by RndTokenManager
- Author:
- Andrea Di Cesare <andrea@softinstigate.com>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandle(JsonRequest request, JsonResponse response) voidinit the servicevoidsetPluginRegistry(PluginsRegistry pluginRegistry) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.restheart.plugins.ConfigurablePlugin
arg, argOrDefaultMethods inherited from interface org.restheart.plugins.ExchangeTypeResolver
requestType, responseTypeMethods inherited from interface org.restheart.plugins.JsonService
request, requestInitializer, response, responseInitializerMethods inherited from interface org.restheart.plugins.Service
handleOptions
-
Constructor Details
-
RndTokenService
public RndTokenService()
-
-
Method Details
-
setPluginRegistry
-
init
init the service- Parameters:
confArgs-- Throws:
ConfigurationException
-
handle
- Specified by:
handlein interfaceService<JsonRequest,JsonResponse> - Parameters:
request- JsonRequestresponse- JsonResponse- Throws:
Exception- in case of any error
-