public class JwtBasedRequestContextExecutor extends BaseRequestContextExecutor<JwtBasedRequestContextExecutor>
Callable
or Executable
as if it would have been
invoked via a HttpServletRequest
with the given JWT bearer as part of the "Authorization" header.Constructor and Description |
---|
JwtBasedRequestContextExecutor() |
Modifier and Type | Method and Description |
---|---|
protected JwtBasedRequestContextExecutor |
getThis()
Getter needed to allow for a type safe return in the builder methods.
|
JwtBasedRequestContextExecutor |
withJwt(String encodedJwt)
The given JWT is used to initialize the
RequestContext as if it was called from
HttpServletRequest . |
execute, execute, withListeners, withoutDefaultListeners, withoutListener, withoutListeners, withRequestContext
@Nonnull public JwtBasedRequestContextExecutor withJwt(@Nonnull String encodedJwt)
RequestContext
as if it was called from
HttpServletRequest
.encodedJwt
- The encoded JWT to be used.@Nonnull protected JwtBasedRequestContextExecutor getThis()
BaseRequestContextExecutor
protected ImplementingType getThis() { return this; }in the subclasses.
getThis
in class BaseRequestContextExecutor<JwtBasedRequestContextExecutor>
Copyright © 2018 SAP SE. All rights reserved.