正在查看: Cashalo v2.25.0.0 应用的 BearerTokenInterceptor.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Cashalo v2.25.0.0 应用的 BearerTokenInterceptor.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.apollographql.apollo3.network.http;
import com.apollographql.apollo3.network.http.HttpInterceptor;
import com.facebook.share.internal.ShareConstants;
import kotlin.Deprecated;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import kotlinx.coroutines.sync.Mutex;
import kotlinx.coroutines.sync.MutexKt;
@Deprecated(message = "BearerTokenInterceptor was provided as an example but is too simple for most use cases.Define your own interceptor or take a look at https://www.apollographql.com/docs/kotlin/advanced/interceptors-http for more details.")
@Metadata(d1 = {"\u0000,\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\b\u0007\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004J!\u0010\u0007\u001a\u00020\b2\u0006\u0010\t\u001a\u00020\n2\u0006\u0010\u000b\u001a\u00020\fH\u0096@ø\u0001\u0000¢\u0006\u0002\u0010\rR\u000e\u0010\u0005\u001a\u00020\u0006X\u0082\u0004¢\u0006\u0002\n\u0000R\u000e\u0010\u0002\u001a\u00020\u0003X\u0082\u0004¢\u0006\u0002\n\u0000\u0082\u0002\u0004\n\u0002\b\u0019¨\u0006\u000e"}, d2 = {"Lcom/apollographql/apollo3/network/http/BearerTokenInterceptor;", "Lcom/apollographql/apollo3/network/http/HttpInterceptor;", "tokenProvider", "Lcom/apollographql/apollo3/network/http/TokenProvider;", "(Lcom/apollographql/apollo3/network/http/TokenProvider;)V", "mutex", "Lkotlinx/coroutines/sync/Mutex;", "intercept", "Lcom/apollographql/apollo3/api/http/HttpResponse;", ShareConstants.WEB_DIALOG_RESULT_PARAM_REQUEST_ID, "Lcom/apollographql/apollo3/api/http/HttpRequest;", "chain", "Lcom/apollographql/apollo3/network/http/HttpInterceptorChain;", "(Lcom/apollographql/apollo3/api/http/HttpRequest;Lcom/apollographql/apollo3/network/http/HttpInterceptorChain;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "apollo-runtime"}, k = 1, mv = {1, 5, 1}, xi = 48)
public final class BearerTokenInterceptor implements HttpInterceptor {
private final Mutex mutex;
private final TokenProvider tokenProvider;
public BearerTokenInterceptor(TokenProvider tokenProvider) {
Intrinsics.checkNotNullParameter(tokenProvider, "tokenProvider");
this.tokenProvider = tokenProvider;
this.mutex = MutexKt.Mutex$default(false, 1, (Object) null);
}
@Override
public void dispose() {
HttpInterceptor.DefaultImpls.dispose(this);
}
@Override
public java.lang.Object intercept(com.apollographql.apollo3.api.http.HttpRequest r13, com.apollographql.apollo3.network.http.HttpInterceptorChain r14, kotlin.coroutines.Continuation<? super com.apollographql.apollo3.api.http.HttpResponse> r15) {
throw new UnsupportedOperationException("Method not decompiled: com.apollographql.apollo3.network.http.BearerTokenInterceptor.intercept(com.apollographql.apollo3.api.http.HttpRequest, com.apollographql.apollo3.network.http.HttpInterceptorChain, kotlin.coroutines.Continuation):java.lang.Object");
}
}