导航菜单

页面标题

页面副标题

Zepto v25.1.4 - CLRemoteServiceImpl.java 源代码

正在查看: Zepto v25.1.4 应用的 CLRemoteServiceImpl.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package org.npci.upi.security.pinactivitycomponent;

import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.os.IBinder;
import org.npci.upi.security.services.CLRemoteService;
import org.npci.upi.security.services.CLResultReceiver;

public class CLRemoteServiceImpl extends Service {
    private CLRemoteService.Stub a = null;
    private d b = null;

    public class a extends CLRemoteService.Stub {
        private Context b;

        private a(Context context) {
            this.b = context;
        }

        @Override
        public void execute(String str) {
            if (GetCredential._getInstance() != null) {
                GetCredential._getInstance().triggredOTPResponse(str);
            }
        }

        @Override
        public String getChallenge(String str, String str2) {
            return CLRemoteServiceImpl.this.b.a(str, str2);
        }

        @Override
        public void getCredential(String str, String str2, String str3, String str4, String str5, String str6, String str7, String str8, CLResultReceiver cLResultReceiver) {
            new n(this.b).a(CLConstants.SHARED_PREFERENCE_ITEM_LANG_PREF, str8);
            Bundle a = CLRemoteServiceImpl.this.a(str, str2, str3, str4, str5, str6, str7, str8, cLResultReceiver);
            Intent intent = new Intent(this.b, (Class<?>) GetCredential.class);
            intent.setFlags(268435456);
            intent.putExtras(a);
            this.b.startActivity(intent);
        }

        @Override
        public Intent getCredentialIntent(String str, String str2, String str3, String str4, String str5, String str6, String str7, String str8, CLResultReceiver cLResultReceiver) {
            Bundle a = CLRemoteServiceImpl.this.a(str, str2, str3, str4, str5, str6, str7, str8, cLResultReceiver);
            Intent intent = new Intent(this.b, (Class<?>) GetCredential.class);
            intent.putExtras(a);
            return intent;
        }

        @Override
        public String getUPILiteBalance(String str, String str2, String str3) {
            return CLRemoteServiceImpl.this.b.c(str, str2, str3);
        }

        @Override
        public String isUpiLiteBound(String str, String str2, String str3) {
            return CLRemoteServiceImpl.this.b.a(str, str2, str3);
        }

        @Override
        public boolean isUpiLiteSupported() {
            return CLRemoteServiceImpl.this.b.c();
        }

        @Override
        public boolean registerApp(String str, String str2, String str3, String str4, String str5) {
            return CLRemoteServiceImpl.this.b.a(str, str2, str3, str4, str5);
        }

        @Override
        public boolean registerUPILiteOnboarding(String str, String str2, String str3, String str4) {
            return CLRemoteServiceImpl.this.b.a(str, str2, str3, str4);
        }

        @Override
        public boolean registerUPILiteState(String str, String str2, String str3, String str4) {
            return CLRemoteServiceImpl.this.b.b(str, str2, str3, str4);
        }

        @Override
        public boolean unBindDevice(String str, String str2, String str3) {
            return CLRemoteServiceImpl.this.b.b(str, str2, str3);
        }
    }

    public Bundle a(String str, String str2, String str3, String str4, String str5, String str6, String str7, String str8, CLResultReceiver cLResultReceiver) {
        Bundle bundle = new Bundle();
        bundle.putString(CLConstants.INPUT_CODE, str);
        bundle.putString(CLConstants.INPUT_XML_PAYLOAD, str2);
        bundle.putString(CLConstants.INPUT_CONTROLS, str3);
        bundle.putString(CLConstants.INPUT_CONFIGURATION, str4);
        bundle.putString(CLConstants.INPUT_SALT, str5);
        bundle.putString(CLConstants.INPUT_PAY_INFO, str6);
        bundle.putString(CLConstants.INPUT_TRUST, str7);
        bundle.putString(CLConstants.INPUT_LANGUAGE_PREFERENCE, str8);
        l.a(new CLServerResultReceiver(cLResultReceiver));
        return bundle;
    }

    @Override
    public IBinder onBind(Intent intent) {
        if (this.a == null) {
            this.a = new a(getBaseContext());
        }
        try {
            this.b = new d(getBaseContext());
            return this.a;
        } catch (Exception unused) {
            throw new RuntimeException("Could not initialize service provider");
        }
    }
}