Package org.restheart.security.services
Class AuthTokenService
java.lang.Object
org.restheart.security.services.AuthTokenService
- All Implemented Interfaces:
org.restheart.exchange.CORSHeaders,org.restheart.plugins.ConfigurablePlugin,org.restheart.plugins.ExchangeTypeResolver<org.restheart.exchange.JsonRequest,,org.restheart.exchange.JsonResponse> org.restheart.plugins.HandlingPlugin<org.restheart.exchange.JsonRequest,,org.restheart.exchange.JsonResponse> org.restheart.plugins.JsonService,org.restheart.plugins.Plugin,org.restheart.plugins.Service<org.restheart.exchange.JsonRequest,org.restheart.exchange.JsonResponse>
allows to get and invalidate the user auth token generated by RndTokenManager
- Author:
- Andrea Di Cesare <andrea@softinstigate.com>
-
Field Summary
Fields inherited from interface org.restheart.exchange.CORSHeaders
ACCESS_CONTROL_ALLOW_CREDENTIAL, ACCESS_CONTROL_ALLOW_HEADERS, ACCESS_CONTROL_ALLOW_METHODS, ACCESS_CONTROL_ALLOW_ORIGIN, ACCESS_CONTROL_EXPOSE_HEADERS, DEFAULT_ACCESS_CONTROL_ALLOW_CREDENTIALS, DEFAULT_ACCESS_CONTROL_ALLOW_HEADERS, DEFAULT_ACCESS_CONTROL_ALLOW_METHODS, DEFAULT_ACCESS_CONTROL_ALLOW_ORIGIN, DEFAULT_ACCESS_CONTROL_EXPOSE_HEADERS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandle(org.restheart.exchange.JsonRequest request, org.restheart.exchange.JsonResponse response) 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.exchange.CORSHeaders
accessControlAllowCredentials, accessControlAllowHeaders, accessControlAllowMethods, accessControlAllowOrigin, accessControlExposeHeadersMethods 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
handle, handleOptions, handleOptions
-
Constructor Details
-
AuthTokenService
public AuthTokenService()
-
-
Method Details
-
handle
public void handle(org.restheart.exchange.JsonRequest request, org.restheart.exchange.JsonResponse response) throws Exception - Specified by:
handlein interfaceorg.restheart.plugins.Service<org.restheart.exchange.JsonRequest,org.restheart.exchange.JsonResponse> - Parameters:
request- JsonRequestresponse- JsonResponse- Throws:
Exception- in case of any error
-