64 if (token == null || !token.isRetry()) {
68 if (cause instanceof HttpResponseException) {
69 HttpResponseException httpe = HttpResponseException.class.cast(cause);
71 if (httpe.getStatusCode() == 403) {
72 TokenIntrospectionResponse response = token.getHttp().<TokenIntrospectionResponse>post(token.getServerConfiguration().getTokenIntrospectionEndpoint())
75 .param(
"token", token.call())
76 .response().json(TokenIntrospectionResponse.class).execute();
78 if (!response.getActive()) {
81 return callable.call();
82 }
catch (Exception e) {
91 throw new RuntimeException(message, cause);
static RuntimeException handleWrapException(String message, Throwable cause)
Definition: Throwables.java:40