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