CarrotChat v2.8.80.240429版本的 MD5 值为:fdf98761f01e715a89df24b85b0d206e

以下内容为反编译后的 TokenMaskManager.java 源代码,内容仅作参考


package com.mobile.auth.gatewayauth.manager;

import android.text.TextUtils;
import android.util.LruCache;
import com.mobile.auth.gatewayauth.Constant;
import com.mobile.auth.gatewayauth.ExceptionProcessor;
import com.mobile.auth.gatewayauth.ResultCode;
import com.mobile.auth.gatewayauth.annotations.SafeProtector;
import com.mobile.auth.gatewayauth.manager.a;
import com.mobile.auth.gatewayauth.manager.base.Cache;
import com.mobile.auth.gatewayauth.manager.base.CacheKey;
import com.mobile.auth.gatewayauth.model.LoginPhoneInfo;
import com.mobile.auth.gatewayauth.utils.TokenGenerator;
import com.mobile.auth.gatewayauth.utils.g;
import com.nirvana.tools.cache.CacheHandler;
import com.nirvana.tools.cache.CacheManager;
import com.nirvana.tools.jsoner.JsonType;
import com.nirvana.tools.requestqueue.Callback;
import com.nirvana.tools.requestqueue.strategy.ThreadStrategy;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import org.json.JSONObject;

public class TokenMaskManager {

    private b f29917a;

    private SystemManager f29918b;

    private d f29919c;

    private VendorSdkInfoManager f29920d;

    private f f29921e;

    private TokenGenerator f29922f;

    private com.mobile.auth.q.a f29923g;

    private volatile Map<String, LoginPhoneInfo> f29924h = new ConcurrentHashMap();

    private volatile Cache<LoginPhoneInfo> f29925i = null;

    private volatile LruCache<String, Cache<String>> f29926j = new LruCache<>(10);

    private volatile LruCache<String, Cache<String>> f29927k = new LruCache<>(10);

    private CacheHandler f29928l;

    private CacheHandler f29929m;

    private CacheHandler f29930n;

    private CacheHandler f29931o;

    private CacheManager f29932p;

    class AnonymousClass11 extends Callback<com.mobile.auth.w.e> {

        final RequestCallback f29940a;

        AnonymousClass11(ThreadStrategy threadStrategy, long j10, RequestCallback requestCallback) {
            super(threadStrategy, j10);
            this.f29940a = requestCallback;
        }

        public void a(com.mobile.auth.w.e eVar) {
            try {
                if (eVar.a()) {
                    this.f29940a.onSuccess(eVar);
                    return;
                }
                com.mobile.auth.gatewayauth.manager.base.b b10 = eVar.b();
                if (b10 == null) {
                    b10 = com.mobile.auth.gatewayauth.manager.base.b.a(ResultCode.CODE_ERROR_UNKNOWN_FAIL, "未知异常");
                }
                this.f29940a.onError(b10);
            } catch (Throwable th) {
                try {
                    ExceptionProcessor.processException(th);
                } catch (Throwable th2) {
                    ExceptionProcessor.processException(th2);
                }
            }
        }

        @Override
        public void onResult(com.mobile.auth.w.e eVar) {
            try {
                a(eVar);
            } catch (Throwable th) {
                try {
                    ExceptionProcessor.processException(th);
                } catch (Throwable th2) {
                    ExceptionProcessor.processException(th2);
                }
            }
        }
    }

    class AnonymousClass12 extends com.mobile.auth.r.e {

        final String f29942a;

        final String f29943b;

        AnonymousClass12(f fVar, String str, long j10, String str2, String str3, String str4) {
            super(fVar, str, j10, str2);
            this.f29942a = str3;
            this.f29943b = str4;
        }

        @Override
        public void a(RequestCallback requestCallback, a aVar) {
            try {
                aVar.a((RequestCallback<a.C0158a, com.mobile.auth.gatewayauth.manager.base.b>) requestCallback, a.b.a().a(this.f29942a).b(this.f29943b).a());
            } catch (Throwable th) {
                try {
                    ExceptionProcessor.processException(th);
                } catch (Throwable th2) {
                    ExceptionProcessor.processException(th2);
                }
            }
        }
    }

    class AnonymousClass13 extends Callback<com.mobile.auth.w.e> {

        final String f29945a;

        final String f29946b;

        final CacheKey f29947c;

        final RequestCallback f29948d;

        AnonymousClass13(ThreadStrategy threadStrategy, long j10, String str, String str2, CacheKey cacheKey, RequestCallback requestCallback) {
            super(threadStrategy, j10);
            this.f29945a = str;
            this.f29946b = str2;
            this.f29947c = cacheKey;
            this.f29948d = requestCallback;
        }

        public void a(com.mobile.auth.w.e eVar) {
            try {
                TokenMaskManager.d(TokenMaskManager.this).a("Update LoginToken from network!");
                if (eVar.a()) {
                    eVar.b().a(Math.min(System.currentTimeMillis() + 86400000, eVar.b().f()));
                    TokenMaskManager.a(TokenMaskManager.this, this.f29945a, this.f29946b, this.f29947c, eVar.b().d(), eVar.b().f());
                    this.f29948d.onSuccess("false");
                } else {
                    com.mobile.auth.gatewayauth.manager.base.b b10 = eVar.b();
                    if (b10 == null) {
                        b10 = com.mobile.auth.gatewayauth.manager.base.b.a(ResultCode.CODE_ERROR_UNKNOWN_FAIL, "未知异常");
                    }
                    this.f29948d.onError(b10);
                }
            } catch (Throwable th) {
                try {
                    ExceptionProcessor.processException(th);
                } catch (Throwable th2) {
                    ExceptionProcessor.processException(th2);
                }
            }
        }

        @Override
        public void onResult(com.mobile.auth.w.e eVar) {
            try {
                a(eVar);
            } catch (Throwable th) {
                try {
                    ExceptionProcessor.processException(th);
                } catch (Throwable th2) {
                    ExceptionProcessor.processException(th2);
                }
            }
        }
    }

    class AnonymousClass14 extends com.mobile.auth.r.e {

        final String f29950a;

        final String f29951b;

        AnonymousClass14(f fVar, String str, long j10, String str2, String str3, String str4) {
            super(fVar, str, j10, str2);
            this.f29950a = str3;
            this.f29951b = str4;
        }

        @Override
        public void a(RequestCallback requestCallback, a aVar) {
            try {
                aVar.b((RequestCallback<a.C0158a, com.mobile.auth.gatewayauth.manager.base.b>) requestCallback, a.b.a().a(this.f29950a).b(this.f29951b).a());
            } catch (Throwable th) {
                try {
                    ExceptionProcessor.processException(th);
                } catch (Throwable th2) {
                    ExceptionProcessor.processException(th2);
                }
            }
        }
    }

    class AnonymousClass15 extends Callback<com.mobile.auth.w.e> {

        final String f29953a;

        final RequestCallback f29954b;

        AnonymousClass15(ThreadStrategy threadStrategy, long j10, String str, RequestCallback requestCallback) {
            super(threadStrategy, j10);
            this.f29953a = str;
            this.f29954b = requestCallback;
        }

        public void a(com.mobile.auth.w.e eVar) {
            try {
                TokenMaskManager.d(TokenMaskManager.this).a("Update LoginToken from network!");
                if (eVar.a()) {
                    eVar.b().a(TokenMaskManager.a(TokenMaskManager.this, eVar.b().d(), this.f29953a, true));
                    this.f29954b.onSuccess(eVar.b());
                } else {
                    com.mobile.auth.gatewayauth.manager.base.b b10 = eVar.b();
                    if (b10 == null) {
                        b10 = com.mobile.auth.gatewayauth.manager.base.b.a(ResultCode.CODE_ERROR_UNKNOWN_FAIL, "未知异常");
                    }
                    this.f29954b.onError(b10);
                }
            } catch (Throwable th) {
                try {
                    ExceptionProcessor.processException(th);
                } catch (Throwable th2) {
                    ExceptionProcessor.processException(th2);
                }
            }
        }

        @Override
        public void onResult(com.mobile.auth.w.e eVar) {
            try {
                a(eVar);
            } catch (Throwable th) {
                try {
                    ExceptionProcessor.processException(th);
                } catch (Throwable th2) {
                    ExceptionProcessor.processException(th2);
                }
            }
        }
    }

    class AnonymousClass16 extends com.mobile.auth.r.e {

        final String f29956a;

        final String f29957b;

        AnonymousClass16(f fVar, String str, long j10, String str2, String str3, String str4) {
            super(fVar, str, j10, str2);
            this.f29956a = str3;
            this.f29957b = str4;
        }

        @Override
        public void a(RequestCallback requestCallback, a aVar) {
            try {
                aVar.b((RequestCallback<a.C0158a, com.mobile.auth.gatewayauth.manager.base.b>) requestCallback, a.b.a().a(this.f29956a).b(this.f29957b).a());
            } catch (Throwable th) {
                try {
                    ExceptionProcessor.processException(th);
                } catch (Throwable th2) {
                    ExceptionProcessor.processException(th2);
                }
            }
        }
    }

    class AnonymousClass2 extends Callback<com.mobile.auth.w.f> {

        final String f29959a;

        final RequestCallback f29960b;

        AnonymousClass2(ThreadStrategy threadStrategy, long j10, String str, RequestCallback requestCallback) {
            super(threadStrategy, j10);
            this.f29959a = str;
            this.f29960b = requestCallback;
        }

        public void a(com.mobile.auth.w.f fVar) {
            try {
                TokenMaskManager.d(TokenMaskManager.this).a("Update VerifyToken from network!");
                if (fVar.a()) {
                    fVar.b().a(TokenMaskManager.a(TokenMaskManager.this, fVar.b().d(), this.f29959a, false));
                    this.f29960b.onSuccess(fVar.b());
                } else {
                    com.mobile.auth.gatewayauth.manager.base.b b10 = fVar.b();
                    if (b10 == null) {
                        b10 = com.mobile.auth.gatewayauth.manager.base.b.a(ResultCode.CODE_ERROR_UNKNOWN_FAIL, "未知异常");
                    }
                    this.f29960b.onError(b10);
                }
            } catch (Throwable th) {
                try {
                    ExceptionProcessor.processException(th);
                } catch (Throwable th2) {
                    ExceptionProcessor.processException(th2);
                }
            }
        }

        @Override
        public void onResult(com.mobile.auth.w.f fVar) {
            try {
                a(fVar);
            } catch (Throwable th) {
                try {
                    ExceptionProcessor.processException(th);
                } catch (Throwable th2) {
                    ExceptionProcessor.processException(th2);
                }
            }
        }
    }

    class AnonymousClass3 extends Callback<com.mobile.auth.w.f> {

        final String f29962a;

        final String f29963b;

        final CacheKey f29964c;

        final RequestCallback f29965d;

        AnonymousClass3(ThreadStrategy threadStrategy, long j10, String str, String str2, CacheKey cacheKey, RequestCallback requestCallback) {
            super(threadStrategy, j10);
            this.f29962a = str;
            this.f29963b = str2;
            this.f29964c = cacheKey;
            this.f29965d = requestCallback;
        }

        public void a(com.mobile.auth.w.f fVar) {
            try {
                TokenMaskManager.d(TokenMaskManager.this).a("Update VerifyToken from network!");
                if (fVar.a()) {
                    fVar.b().a(Math.min(System.currentTimeMillis() + 86400000, fVar.b().f()));
                    TokenMaskManager.b(TokenMaskManager.this, this.f29962a, this.f29963b, this.f29964c, fVar.b().d(), fVar.b().f());
                    this.f29965d.onSuccess("false");
                } else {
                    com.mobile.auth.gatewayauth.manager.base.b b10 = fVar.b();
                    if (b10 == null) {
                        b10 = com.mobile.auth.gatewayauth.manager.base.b.a(ResultCode.CODE_ERROR_UNKNOWN_FAIL, "未知异常");
                    }
                    this.f29965d.onError(b10);
                }
            } catch (Throwable th) {
                try {
                    ExceptionProcessor.processException(th);
                } catch (Throwable th2) {
                    ExceptionProcessor.processException(th2);
                }
            }
        }

        @Override
        public void onResult(com.mobile.auth.w.f fVar) {
            try {
                a(fVar);
            } catch (Throwable th) {
                try {
                    ExceptionProcessor.processException(th);
                } catch (Throwable th2) {
                    ExceptionProcessor.processException(th2);
                }
            }
        }
    }

    class AnonymousClass4 extends JsonType<LoginPhoneInfo> {
        AnonymousClass4() {
        }
    }

    class AnonymousClass5 extends JsonType<String> {
        AnonymousClass5() {
        }
    }

    class AnonymousClass6 extends JsonType<String> {
        AnonymousClass6() {
        }
    }

    class AnonymousClass7 implements Runnable {
        AnonymousClass7() {
        }

        @Override
        public void run() {
            try {
                TokenMaskManager.g(TokenMaskManager.this).save(TokenMaskManager.f(TokenMaskManager.this).encryptContent(TokenMaskManager.e(TokenMaskManager.this).toJson().toString()));
            } catch (Throwable th) {
                try {
                    ExceptionProcessor.processException(th);
                } catch (Throwable th2) {
                    ExceptionProcessor.processException(th2);
                }
            }
        }
    }

    class AnonymousClass8 implements Runnable {

        final JSONObject f29971a;

        AnonymousClass8(JSONObject jSONObject) {
            this.f29971a = jSONObject;
        }

        @Override
        public void run() {
            try {
                TokenMaskManager.h(TokenMaskManager.this).save(TokenMaskManager.f(TokenMaskManager.this).encryptContent(this.f29971a.toString()));
            } catch (Throwable th) {
                try {
                    ExceptionProcessor.processException(th);
                } catch (Throwable th2) {
                    ExceptionProcessor.processException(th2);
                }
            }
        }
    }

    static {
        e1.a.SLoad("pns-2.13.2.1-LogOnlineStandardCuumRelease_alijtca_plus");
    }

    public TokenMaskManager(b bVar, SystemManager systemManager, d dVar, f fVar, VendorSdkInfoManager vendorSdkInfoManager) {
        this.f29917a = bVar;
        this.f29918b = systemManager;
        this.f29919c = dVar;
        this.f29923g = dVar.a();
        this.f29920d = vendorSdkInfoManager;
        this.f29921e = fVar;
        this.f29922f = new TokenGenerator(this.f29923g, this.f29918b, this.f29920d);
        this.f29932p = CacheManager.getInstance(this.f29918b.e());
        b();
        g.a(new Runnable() {
            @Override
            public void run() {
                try {
                    TokenMaskManager.a(TokenMaskManager.this);
                    TokenMaskManager.b(TokenMaskManager.this);
                    TokenMaskManager.c(TokenMaskManager.this);
                } catch (Throwable th) {
                    try {
                        ExceptionProcessor.processException(th);
                    } catch (Throwable th2) {
                        ExceptionProcessor.processException(th2);
                    }
                }
            }
        });
    }

    static String a(TokenMaskManager tokenMaskManager, String str, String str2, boolean z10) {
        try {
            return tokenMaskManager.a(str, str2, z10);
        } catch (Throwable th) {
            try {
                ExceptionProcessor.processException(th);
                return null;
            } catch (Throwable th2) {
                ExceptionProcessor.processException(th2);
                return null;
            }
        }
    }

    private native String a(String str, CacheKey cacheKey, long j10);

    private native String a(String str, String str2, CacheKey cacheKey, long j10);

    private native String a(String str, String str2, boolean z10);

    static void a(TokenMaskManager tokenMaskManager) {
        try {
            tokenMaskManager.c();
        } catch (Throwable th) {
            try {
                ExceptionProcessor.processException(th);
            } catch (Throwable th2) {
                ExceptionProcessor.processException(th2);
            }
        }
    }

    static void a(TokenMaskManager tokenMaskManager, CacheKey cacheKey, LoginPhoneInfo loginPhoneInfo, String str) {
        try {
            tokenMaskManager.a(cacheKey, loginPhoneInfo, str);
        } catch (Throwable th) {
            try {
                ExceptionProcessor.processException(th);
            } catch (Throwable th2) {
                ExceptionProcessor.processException(th2);
            }
        }
    }

    static void a(TokenMaskManager tokenMaskManager, String str, String str2, CacheKey cacheKey, String str3, long j10) {
        try {
            tokenMaskManager.b(str, str2, cacheKey, str3, j10);
        } catch (Throwable th) {
            try {
                ExceptionProcessor.processException(th);
            } catch (Throwable th2) {
                ExceptionProcessor.processException(th2);
            }
        }
    }

    private native synchronized void a(CacheKey cacheKey, LoginPhoneInfo loginPhoneInfo, String str);

    private native synchronized void a(String str, String str2, CacheKey cacheKey, String str3, long j10);

    private native boolean a(String str, String str2, long j10);

    private native synchronized boolean a(String str, String str2, LruCache<String, Cache<String>> lruCache, long j10);

    private native void b();

    static void b(TokenMaskManager tokenMaskManager) {
        try {
            tokenMaskManager.d();
        } catch (Throwable th) {
            try {
                ExceptionProcessor.processException(th);
            } catch (Throwable th2) {
                ExceptionProcessor.processException(th2);
            }
        }
    }

    static void b(TokenMaskManager tokenMaskManager, String str, String str2, CacheKey cacheKey, String str3, long j10) {
        try {
            tokenMaskManager.a(str, str2, cacheKey, str3, j10);
        } catch (Throwable th) {
            try {
                ExceptionProcessor.processException(th);
            } catch (Throwable th2) {
                ExceptionProcessor.processException(th2);
            }
        }
    }

    private native synchronized void b(String str, String str2, CacheKey cacheKey, String str3, long j10);

    private native boolean b(CacheKey cacheKey);

    private native boolean b(String str, String str2, long j10);

    private native synchronized void c();

    static void c(TokenMaskManager tokenMaskManager) {
        try {
            tokenMaskManager.e();
        } catch (Throwable th) {
            try {
                ExceptionProcessor.processException(th);
            } catch (Throwable th2) {
                ExceptionProcessor.processException(th2);
            }
        }
    }

    static com.mobile.auth.q.a d(TokenMaskManager tokenMaskManager) {
        try {
            return tokenMaskManager.f29923g;
        } catch (Throwable th) {
            try {
                ExceptionProcessor.processException(th);
                return null;
            } catch (Throwable th2) {
                ExceptionProcessor.processException(th2);
                return null;
            }
        }
    }

    private native synchronized void d();

    static Cache e(TokenMaskManager tokenMaskManager) {
        try {
            return tokenMaskManager.f29925i;
        } catch (Throwable th) {
            try {
                ExceptionProcessor.processException(th);
                return null;
            } catch (Throwable th2) {
                ExceptionProcessor.processException(th2);
                return null;
            }
        }
    }

    private native synchronized void e();

    static SystemManager f(TokenMaskManager tokenMaskManager) {
        try {
            return tokenMaskManager.f29918b;
        } catch (Throwable th) {
            try {
                ExceptionProcessor.processException(th);
                return null;
            } catch (Throwable th2) {
                ExceptionProcessor.processException(th2);
                return null;
            }
        }
    }

    private native synchronized void f();

    static CacheHandler g(TokenMaskManager tokenMaskManager) {
        try {
            return tokenMaskManager.f29931o;
        } catch (Throwable th) {
            try {
                ExceptionProcessor.processException(th);
                return null;
            } catch (Throwable th2) {
                ExceptionProcessor.processException(th2);
                return null;
            }
        }
    }

    private native synchronized void g();

    static CacheHandler h(TokenMaskManager tokenMaskManager) {
        try {
            return tokenMaskManager.f29930n;
        } catch (Throwable th) {
            try {
                ExceptionProcessor.processException(th);
                return null;
            } catch (Throwable th2) {
                ExceptionProcessor.processException(th2);
                return null;
            }
        }
    }

    private native synchronized void h();

    @SafeProtector
    private native synchronized String popToken(String str, CacheKey cacheKey, CacheHandler cacheHandler, LruCache<String, Cache<String>> lruCache, long j10);

    @SafeProtector
    private native void requestMask(long j10, String str, RequestCallback<com.mobile.auth.w.e, com.mobile.auth.gatewayauth.manager.base.b> requestCallback, CacheKey cacheKey, String str2, int i10, String str3, String str4);

    public native LoginPhoneInfo a(CacheKey cacheKey);

    public native synchronized void a();

    public native void a(long j10, String str, RequestCallback<com.mobile.auth.gatewayauth.manager.base.b, com.mobile.auth.gatewayauth.manager.base.b> requestCallback, CacheKey cacheKey, long j11, String str2, String str3, String str4);

    public native void a(long j10, String str, RequestCallback<String, com.mobile.auth.gatewayauth.manager.base.b> requestCallback, CacheKey cacheKey, String str2, long j11, int i10, String str3, String str4);

    public native void b(long j10, String str, RequestCallback<String, com.mobile.auth.gatewayauth.manager.base.b> requestCallback, CacheKey cacheKey, long j11, String str2, String str3, String str4);

    public native void b(long j10, String str, RequestCallback<com.mobile.auth.gatewayauth.manager.base.b, com.mobile.auth.gatewayauth.manager.base.b> requestCallback, CacheKey cacheKey, String str2, long j11, int i10, String str3, String str4);

    @SafeProtector
    public void updateMask(long j10, final String str, final RequestCallback<com.mobile.auth.gatewayauth.manager.base.b, com.mobile.auth.gatewayauth.manager.base.b> requestCallback, final CacheKey cacheKey, int i10, final String str2, String str3, String str4) {
        if (requestCallback == null) {
            return;
        }
        try {
            if (this.f29917a.c()) {
                requestCallback.onError(com.mobile.auth.gatewayauth.manager.base.b.a(Constant.CODE_ERROR_FUNCTION_DEMOTE, "系统维护,功能不可用"));
                return;
            }
            LoginPhoneInfo a10 = a(cacheKey);
            com.mobile.auth.gatewayauth.utils.e.a().a(str3, "maskCache", System.currentTimeMillis());
            final CacheKey vendorCacheKey = this.f29918b.getVendorCacheKey(str);
            long a11 = c.a(str);
            com.mobile.auth.q.a aVar = this.f29923g;
            String[] strArr = new String[3];
            StringBuilder sb2 = new StringBuilder();
            sb2.append("HasMaskCache:");
            sb2.append(a10 != null);
            strArr[0] = sb2.toString();
            strArr[1] = ", SimKey:";
            strArr[2] = cacheKey.toString();
            aVar.a(strArr);
            if (a10 == null) {
                requestMask(j10, str, new RequestCallback<com.mobile.auth.w.e, com.mobile.auth.gatewayauth.manager.base.b>() {
                    public void a(com.mobile.auth.gatewayauth.manager.base.b bVar) {
                        if (bVar == null) {
                            try {
                                bVar = com.mobile.auth.gatewayauth.manager.base.b.a(ResultCode.CODE_ERROR_UNKNOWN_FAIL, "未知异常");
                            } catch (Throwable th) {
                                try {
                                    ExceptionProcessor.processException(th);
                                    return;
                                } catch (Throwable th2) {
                                    ExceptionProcessor.processException(th2);
                                    return;
                                }
                            }
                        }
                        requestCallback.onError(bVar);
                    }

                    public void a(com.mobile.auth.w.e eVar) {
                        try {
                            LoginPhoneInfo build = LoginPhoneInfo.newLoginPhoneInfo().protocolName(eVar.c().e()).protocolUrl(eVar.c().f()).phoneNumber(eVar.c().b()).build();
                            TokenMaskManager.a(TokenMaskManager.this, cacheKey, build, str);
                            requestCallback.onSuccess(com.mobile.auth.gatewayauth.manager.base.b.a().a(false).a(build).a());
                            eVar.b().a(Math.min(System.currentTimeMillis() + 86400000, eVar.b().f()));
                            if (TextUtils.isEmpty(eVar.b().d())) {
                                return;
                            }
                            TokenMaskManager.a(TokenMaskManager.this, str2, str, vendorCacheKey, eVar.b().d(), eVar.b().f());
                        } catch (Throwable th) {
                            try {
                                ExceptionProcessor.processException(th);
                            } catch (Throwable th2) {
                                ExceptionProcessor.processException(th2);
                            }
                        }
                    }

                    @Override
                    public void onError(com.mobile.auth.gatewayauth.manager.base.b bVar) {
                        try {
                            a(bVar);
                        } catch (Throwable th) {
                            try {
                                ExceptionProcessor.processException(th);
                            } catch (Throwable th2) {
                                ExceptionProcessor.processException(th2);
                            }
                        }
                    }

                    @Override
                    public void onSuccess(com.mobile.auth.w.e eVar) {
                        try {
                            a(eVar);
                        } catch (Throwable th) {
                            try {
                                ExceptionProcessor.processException(th);
                            } catch (Throwable th2) {
                                ExceptionProcessor.processException(th2);
                            }
                        }
                    }
                }, cacheKey, str2, i10, str3, str4);
                return;
            }
            requestCallback.onSuccess(com.mobile.auth.gatewayauth.manager.base.b.a().a(true).a(a10).a());
            if (Constant.VENDOR_CMCC.equals(str) || a(str2, vendorCacheKey.getKey(), a11)) {
                return;
            }
            a(j10, str, new RequestCallback<String, com.mobile.auth.gatewayauth.manager.base.b>() {
                public void a(com.mobile.auth.gatewayauth.manager.base.b bVar) {
                    try {
                        com.mobile.auth.q.a d10 = TokenMaskManager.d(TokenMaskManager.this);
                        String[] strArr2 = new String[2];
                        strArr2[0] = "Update LoginToken failed when update mask!";
                        strArr2[1] = bVar == null ? "" : bVar.toString();
                        d10.e(strArr2);
                    } catch (Throwable th) {
                        try {
                            ExceptionProcessor.processException(th);
                        } catch (Throwable th2) {
                            ExceptionProcessor.processException(th2);
                        }
                    }
                }

                public void a(String str5) {
                    try {
                        TokenMaskManager.d(TokenMaskManager.this).a("Update LoginToken success when update mask!");
                    } catch (Throwable th) {
                        try {
                            ExceptionProcessor.processException(th);
                        } catch (Throwable th2) {
                            ExceptionProcessor.processException(th2);
                        }
                    }
                }

                @Override
                public void onError(com.mobile.auth.gatewayauth.manager.base.b bVar) {
                    try {
                        a(bVar);
                    } catch (Throwable th) {
                        try {
                            ExceptionProcessor.processException(th);
                        } catch (Throwable th2) {
                            ExceptionProcessor.processException(th2);
                        }
                    }
                }

                @Override
                public void onSuccess(String str5) {
                    try {
                        a(str5);
                    } catch (Throwable th) {
                        try {
                            ExceptionProcessor.processException(th);
                        } catch (Throwable th2) {
                            ExceptionProcessor.processException(th2);
                        }
                    }
                }
            }, vendorCacheKey, str2, a11, i10, str3, str4);
        } catch (Throwable th) {
            try {
                ExceptionProcessor.processException(th);
            } catch (Throwable th2) {
                ExceptionProcessor.processException(th2);
            }
        }
    }
}