public class KeycloakConfiguration.AuthenticationTokenInterceptor extends Object implements org.springframework.http.client.ClientHttpRequestInterceptor
| Modifier and Type | Field and Description |
|---|---|
protected KeycloakConfiguration.AccessToken |
accessToken |
protected org.springframework.web.client.RestTemplate |
tokenRestTemplate |
| Constructor and Description |
|---|
AuthenticationTokenInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
KeycloakConfiguration.AccessToken |
fetchAccessToken() |
String |
getAccessTokenValue() |
protected boolean |
hasTokenExpired() |
org.springframework.http.client.ClientHttpResponse |
intercept(org.springframework.http.HttpRequest request,
byte[] body,
org.springframework.http.client.ClientHttpRequestExecution execution) |
protected final org.springframework.web.client.RestTemplate tokenRestTemplate
protected KeycloakConfiguration.AccessToken accessToken
public org.springframework.http.client.ClientHttpResponse intercept(org.springframework.http.HttpRequest request,
byte[] body,
org.springframework.http.client.ClientHttpRequestExecution execution)
throws IOException
intercept in interface org.springframework.http.client.ClientHttpRequestInterceptorIOExceptionpublic String getAccessTokenValue()
public KeycloakConfiguration.AccessToken fetchAccessToken()
protected boolean hasTokenExpired()
Copyright © 2021 Flowable. All rights reserved.