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. |
JwtBasedRequestContextExecutor |
withJwt(String encodedJwt,
String refreshToken)
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 public JwtBasedRequestContextExecutor withJwt(@Nonnull String encodedJwt, @Nonnull String refreshToken)
RequestContext as if it was called from
HttpServletRequest. Also takes a refresh token to refresh the given JWT if expired.encodedJwt - The encoded JWT to be used.refreshToken - The refresh token to be used to refresh the JWT if necessary.@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.