Package com.networknt.security
Class JwtMockHandler
- java.lang.Object
-
- com.networknt.security.JwtMockHandler
-
- All Implemented Interfaces:
LightHttpHandler,io.undertow.server.HttpHandler
public class JwtMockHandler extends Object implements LightHttpHandler
This is a jwt token provider for testing only. It should be injected into the server after it is started. Do not use it on production runtime. If you need an external OAuth2 server, please take a look at https://github.com/networknt/light-oauth2- Author:
- Steve Hu
-
-
Field Summary
Fields Modifier and Type Field Description static StringENABLE_MOCK_JWT-
Fields inherited from interface com.networknt.handler.LightHttpHandler
AUDIT_ON_ERROR, AUDIT_STACK_TRACE, auditOnError, auditStackTrace, config, CONFIG_NAME, ERROR_NOT_DEFINED, logger
-
-
Constructor Summary
Constructors Constructor Description JwtMockHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandleRequest(io.undertow.server.HttpServerExchange exchange)org.jose4j.jwt.JwtClaimsmockClaims()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.networknt.handler.LightHttpHandler
setExchangeStatus, setExchangeStatus
-
-
-
-
Field Detail
-
ENABLE_MOCK_JWT
public static final String ENABLE_MOCK_JWT
- See Also:
- Constant Field Values
-
-