@Override
    public String verifySecretKey(Uri uri) {
        String version = uri.getQueryParameter("v");
        String key = Uri.decode(uri.getQueryParameter("key"));
        String symmetricEncryptType = Uri.decode(uri.getQueryParameter("symmetricEncryptType"));
        String asymmetricEncryptType = Uri.decode(uri.getQueryParameter("asymmetricEncryptType"));
        SALog.i(TAG, "Encrypt, version = " + version
                + ", key = " + key
                + ", symmetricEncryptType = " + symmetricEncryptType
                + ", asymmetricEncryptType = " + asymmetricEncryptType);
        String tip;
        if (TextUtils.isEmpty(version) || TextUtils.isEmpty(key)) {
            tip = SADisplayUtil.getStringResource(mSAContextManager.getContext(), R.string.sensors_analytics_encrypt_fail);
        } else if (mSecretKeyManager != null) {
            tip = mSecretKeyManager.checkPublicSecretKey(mSAContextManager.getContext(), version, key, symmetricEncryptType, asymmetricEncryptType);
        } else {
            tip = SADisplayUtil.getStringResource(mSAContextManager.getContext(), R.string.sensors_analytics_encrypt_disable);
        }
        return tip;
    }
@Test
    public void verifySecretKey() {
        Uri uri = Uri.parse("sace7b04ba://encrypt?v=25&key=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAiX+GcdDPF1In7cvBSvKYrCEGnC3jU+ADrFvvGQFcxloEFTGs6JOMdi56y5l4XJqDLKX/gp4wdIFiV89S0JnOF7V2Q0FvN+1ReaUvI93Fwus9BEnCUchdTHL6jZWBbe1Gq4oTuVv2PcASy+hBplnf1D7HXds6SAf08ZNEX5LGEp+1sIVm8SuH0VXE5rIxZSIz/NB5lDztmOwDWlVUjPi+xURG5L9HrDGgi4DelgrWm9Yq0vmASJ8COItLOMyrr3W3SgdyWR9dJD4Kutq1rflywa32IzdxEFR9HW7p9EAPypTnY2YhW2S/sA/Vz1xPLL8zh/6GL68tnYDz+wva1tUNzQIDAQAB&symmetricEncryptType=AES&asymmetricEncryptType=RSA");
        SAHelper.initSensors(mApplication);
        SAEncryptAPIImpl encryptAPIImpl = new SAEncryptAPIImpl(SensorsDataAPI.sharedInstance(mApplication).getSAContextManager());
        Assert.assertEquals("密钥验证不通过，App 端密钥为空", encryptAPIImpl.verifySecretKey(uri));
    }