Example usage for org.bouncycastle.pqc.jcajce.provider.util CipherSpiExt DECRYPT_MODE

List of usage examples for org.bouncycastle.pqc.jcajce.provider.util CipherSpiExt DECRYPT_MODE

Introduction

In this page you can find the example usage for org.bouncycastle.pqc.jcajce.provider.util CipherSpiExt DECRYPT_MODE.

Prototype

int DECRYPT_MODE

To view the source code for org.bouncycastle.pqc.jcajce.provider.util CipherSpiExt DECRYPT_MODE.

Click Source Link

Document

Constant specifying decrypt mode.

Usage

From source file:com.google.android.gms.common.GooglePlayServicesUtil.java

public static String getErrorString(int i) {
    switch (i) {/*from w  w  w  . j  a va  2s.c  o  m*/
    case ECCurve.COORD_AFFINE /*0*/:
        return "SUCCESS";
    case ExtendedPKIXParameters.CHAIN_VALIDITY_MODEL /*1*/:
        return "SERVICE_MISSING";
    case CipherSpiExt.DECRYPT_MODE /*2*/:
        return "SERVICE_VERSION_UPDATE_REQUIRED";
    case F2m.PPB /*3*/:
        return "SERVICE_DISABLED";
    case ECCurve.COORD_JACOBIAN_MODIFIED /*4*/:
        return "SIGN_IN_REQUIRED";
    case ECCurve.COORD_LAMBDA_AFFINE /*5*/:
        return "INVALID_ACCOUNT";
    case ECCurve.COORD_LAMBDA_PROJECTIVE /*6*/:
        return "RESOLUTION_REQUIRED";
    case ECCurve.COORD_SKEWED /*7*/:
        return "NETWORK_ERROR";
    case X509KeyUsage.keyAgreement /*8*/:
        return "INTERNAL_ERROR";
    case NamedCurve.sect283k1 /*9*/:
        return "SERVICE_INVALID";
    case NamedCurve.sect283r1 /*10*/:
        return "DEVELOPER_ERROR";
    case CertStatus.UNREVOKED /*11*/:
        return "LICENSE_CHECK_FAILED";
    case X509KeyUsage.dataEncipherment /*16*/:
        return "API_UNAVAILABLE";
    default:
        return "UNKNOWN_ERROR_CODE";
    }
}

From source file:com.google.android.gms.common.GooglePlayServicesUtil.java

public static boolean isUserRecoverableError(int i) {
    switch (i) {/*www  . jav a  2 s.  c o  m*/
    case ExtendedPKIXParameters.CHAIN_VALIDITY_MODEL /*1*/:
    case CipherSpiExt.DECRYPT_MODE /*2*/:
    case F2m.PPB /*3*/:
    case NamedCurve.sect283k1 /*9*/:
        return true;
    default:
        return false;
    }
}

From source file:com.google.android.gms.common.GooglePlayServicesUtil.java

private static Dialog zza(int i, Activity activity, Fragment fragment, int i2,
        OnCancelListener onCancelListener) {
    AlertDialog.Builder builder;// ww  w  . j  av a  2s .  c  o  m
    Intent zzan;
    OnClickListener com_google_android_gms_common_internal_zzg;
    CharSequence zzf;
    if (zzlu.zzQ(activity) && i == 2) {
        i = 42;
    }
    if (zzme.zzkg()) {
        TypedValue typedValue = new TypedValue();
        activity.getTheme().resolveAttribute(16843529, typedValue, true);
        if ("Theme.Dialog.Alert".equals(activity.getResources().getResourceEntryName(typedValue.resourceId))) {
            builder = new AlertDialog.Builder(activity, 5);
            if (builder == null) {
                builder = new AlertDialog.Builder(activity);
            }
            builder.setMessage(zze(activity, i));
            if (onCancelListener != null) {
                builder.setOnCancelListener(onCancelListener);
            }
            zzan = zzan(i);
            com_google_android_gms_common_internal_zzg = fragment != null ? new zzg(activity, zzan, i2)
                    : new zzg(fragment, zzan, i2);
            zzf = zzf(activity, i);
            if (zzf != null) {
                builder.setPositiveButton(zzf, com_google_android_gms_common_internal_zzg);
            }
            switch (i) {
            case ECCurve.COORD_AFFINE /*0*/:
                return null;
            case ExtendedPKIXParameters.CHAIN_VALIDITY_MODEL /*1*/:
                return builder.setTitle(C0078R.string.common_google_play_services_install_title).create();
            case CipherSpiExt.DECRYPT_MODE /*2*/:
                return builder.setTitle(C0078R.string.common_google_play_services_update_title).create();
            case F2m.PPB /*3*/:
                return builder.setTitle(C0078R.string.common_google_play_services_enable_title).create();
            case ECCurve.COORD_JACOBIAN_MODIFIED /*4*/:
            case ECCurve.COORD_LAMBDA_PROJECTIVE /*6*/:
                return builder.create();
            case ECCurve.COORD_LAMBDA_AFFINE /*5*/:
                Log.e("GooglePlayServicesUtil",
                        "An invalid account was specified when connecting. Please provide a valid account.");
                return builder.setTitle(C0078R.string.common_google_play_services_invalid_account_title)
                        .create();
            case ECCurve.COORD_SKEWED /*7*/:
                Log.e("GooglePlayServicesUtil", "Network error occurred. Please retry request later.");
                return builder.setTitle(C0078R.string.common_google_play_services_network_error_title).create();
            case X509KeyUsage.keyAgreement /*8*/:
                Log.e("GooglePlayServicesUtil",
                        "Internal error occurred. Please see logs for detailed information");
                return builder.create();
            case NamedCurve.sect283k1 /*9*/:
                Log.e("GooglePlayServicesUtil", "Google Play services is invalid. Cannot recover.");
                return builder.setTitle(C0078R.string.common_google_play_services_unsupported_title).create();
            case NamedCurve.sect283r1 /*10*/:
                Log.e("GooglePlayServicesUtil",
                        "Developer error occurred. Please see logs for detailed information");
                return builder.create();
            case CertStatus.UNREVOKED /*11*/:
                Log.e("GooglePlayServicesUtil", "The application is not licensed to the user.");
                return builder.create();
            case X509KeyUsage.dataEncipherment /*16*/:
                Log.e("GooglePlayServicesUtil",
                        "One of the API components you attempted to connect to is not available.");
                return builder.create();
            case NamedCurve.secp160r2 /*17*/:
                Log.e("GooglePlayServicesUtil", "The specified account could not be signed in.");
                return builder.setTitle(C0078R.string.common_google_play_services_sign_in_failed_title)
                        .create();
            case Place.TYPE_GENERAL_CONTRACTOR /*42*/:
                return builder.setTitle(C0078R.string.common_android_wear_update_title).create();
            default:
                Log.e("GooglePlayServicesUtil", "Unexpected error code " + i);
                return builder.create();
            }
        }
    }
    builder = null;
    if (builder == null) {
        builder = new AlertDialog.Builder(activity);
    }
    builder.setMessage(zze(activity, i));
    if (onCancelListener != null) {
        builder.setOnCancelListener(onCancelListener);
    }
    zzan = zzan(i);
    if (fragment != null) {
    }
    zzf = zzf(activity, i);
    if (zzf != null) {
        builder.setPositiveButton(zzf, com_google_android_gms_common_internal_zzg);
    }
    switch (i) {
    case ECCurve.COORD_AFFINE /*0*/:
        return null;
    case ExtendedPKIXParameters.CHAIN_VALIDITY_MODEL /*1*/:
        return builder.setTitle(C0078R.string.common_google_play_services_install_title).create();
    case CipherSpiExt.DECRYPT_MODE /*2*/:
        return builder.setTitle(C0078R.string.common_google_play_services_update_title).create();
    case F2m.PPB /*3*/:
        return builder.setTitle(C0078R.string.common_google_play_services_enable_title).create();
    case ECCurve.COORD_JACOBIAN_MODIFIED /*4*/:
    case ECCurve.COORD_LAMBDA_PROJECTIVE /*6*/:
        return builder.create();
    case ECCurve.COORD_LAMBDA_AFFINE /*5*/:
        Log.e("GooglePlayServicesUtil",
                "An invalid account was specified when connecting. Please provide a valid account.");
        return builder.setTitle(C0078R.string.common_google_play_services_invalid_account_title).create();
    case ECCurve.COORD_SKEWED /*7*/:
        Log.e("GooglePlayServicesUtil", "Network error occurred. Please retry request later.");
        return builder.setTitle(C0078R.string.common_google_play_services_network_error_title).create();
    case X509KeyUsage.keyAgreement /*8*/:
        Log.e("GooglePlayServicesUtil", "Internal error occurred. Please see logs for detailed information");
        return builder.create();
    case NamedCurve.sect283k1 /*9*/:
        Log.e("GooglePlayServicesUtil", "Google Play services is invalid. Cannot recover.");
        return builder.setTitle(C0078R.string.common_google_play_services_unsupported_title).create();
    case NamedCurve.sect283r1 /*10*/:
        Log.e("GooglePlayServicesUtil", "Developer error occurred. Please see logs for detailed information");
        return builder.create();
    case CertStatus.UNREVOKED /*11*/:
        Log.e("GooglePlayServicesUtil", "The application is not licensed to the user.");
        return builder.create();
    case X509KeyUsage.dataEncipherment /*16*/:
        Log.e("GooglePlayServicesUtil",
                "One of the API components you attempted to connect to is not available.");
        return builder.create();
    case NamedCurve.secp160r2 /*17*/:
        Log.e("GooglePlayServicesUtil", "The specified account could not be signed in.");
        return builder.setTitle(C0078R.string.common_google_play_services_sign_in_failed_title).create();
    case Place.TYPE_GENERAL_CONTRACTOR /*42*/:
        return builder.setTitle(C0078R.string.common_android_wear_update_title).create();
    default:
        Log.e("GooglePlayServicesUtil", "Unexpected error code " + i);
        return builder.create();
    }
}

From source file:com.google.android.gms.common.GooglePlayServicesUtil.java

public static Intent zzan(int i) {
    switch (i) {/*from  ww  w. j  av  a2 s  .c o  m*/
    case ExtendedPKIXParameters.CHAIN_VALIDITY_MODEL /*1*/:
    case CipherSpiExt.DECRYPT_MODE /*2*/:
        return zzo.zzbl(GOOGLE_PLAY_SERVICES_PACKAGE);
    case F2m.PPB /*3*/:
        return zzo.zzbj(GOOGLE_PLAY_SERVICES_PACKAGE);
    case Place.TYPE_GENERAL_CONTRACTOR /*42*/:
        return zzo.zzjl();
    default:
        return null;
    }
}

From source file:com.google.android.gms.common.GooglePlayServicesUtil.java

public static String zze(Context context, int i) {
    Resources resources = context.getResources();
    switch (i) {//from  w  w w . ja v  a2  s  . c o m
    case ExtendedPKIXParameters.CHAIN_VALIDITY_MODEL /*1*/:
        return zza(context.getResources())
                ? resources.getString(C0078R.string.common_google_play_services_install_text_tablet)
                : resources.getString(C0078R.string.common_google_play_services_install_text_phone);
    case CipherSpiExt.DECRYPT_MODE /*2*/:
        return resources.getString(C0078R.string.common_google_play_services_update_text);
    case F2m.PPB /*3*/:
        return resources.getString(C0078R.string.common_google_play_services_enable_text);
    case ECCurve.COORD_LAMBDA_AFFINE /*5*/:
        return resources.getString(C0078R.string.common_google_play_services_invalid_account_text);
    case ECCurve.COORD_SKEWED /*7*/:
        return resources.getString(C0078R.string.common_google_play_services_network_error_text);
    case NamedCurve.sect283k1 /*9*/:
        return resources.getString(C0078R.string.common_google_play_services_unsupported_text);
    case X509KeyUsage.dataEncipherment /*16*/:
        return resources.getString(C0078R.string.commono_google_play_services_api_unavailable_text);
    case NamedCurve.secp160r2 /*17*/:
        return resources.getString(C0078R.string.common_google_play_services_sign_in_failed_text);
    case Place.TYPE_GENERAL_CONTRACTOR /*42*/:
        return resources.getString(C0078R.string.common_android_wear_update_text);
    default:
        return resources.getString(C0078R.string.common_google_play_services_unknown_issue);
    }
}

From source file:com.google.android.gms.common.GooglePlayServicesUtil.java

public static String zzf(Context context, int i) {
    Resources resources = context.getResources();
    switch (i) {/*from w  w w.  j a v a2s . co  m*/
    case ExtendedPKIXParameters.CHAIN_VALIDITY_MODEL /*1*/:
        return resources.getString(C0078R.string.common_google_play_services_install_button);
    case CipherSpiExt.DECRYPT_MODE /*2*/:
    case Place.TYPE_GENERAL_CONTRACTOR /*42*/:
        return resources.getString(C0078R.string.common_google_play_services_update_button);
    case F2m.PPB /*3*/:
        return resources.getString(C0078R.string.common_google_play_services_enable_button);
    default:
        return resources.getString(17039370);
    }
}

From source file:com.google.android.gms.common.GooglePlayServicesUtil.java

public static String zzg(Context context, int i) {
    Resources resources = context.getResources();
    switch (i) {/*from w  w w .ja  v a2s  . c  o m*/
    case ExtendedPKIXParameters.CHAIN_VALIDITY_MODEL /*1*/:
        return resources.getString(C0078R.string.f5x8f024ee1);
    case CipherSpiExt.DECRYPT_MODE /*2*/:
        return resources.getString(C0078R.string.common_google_play_services_notification_needs_update_title);
    case F2m.PPB /*3*/:
        return resources.getString(C0078R.string.common_google_play_services_needs_enabling_title);
    case ECCurve.COORD_LAMBDA_AFFINE /*5*/:
        return resources.getString(C0078R.string.common_google_play_services_invalid_account_text);
    case ECCurve.COORD_SKEWED /*7*/:
        return resources.getString(C0078R.string.common_google_play_services_network_error_text);
    case NamedCurve.sect283k1 /*9*/:
        return resources.getString(C0078R.string.common_google_play_services_unsupported_text);
    case X509KeyUsage.dataEncipherment /*16*/:
        return resources.getString(C0078R.string.commono_google_play_services_api_unavailable_text);
    case NamedCurve.secp160r2 /*17*/:
        return resources.getString(C0078R.string.common_google_play_services_sign_in_failed_text);
    case Place.TYPE_GENERAL_CONTRACTOR /*42*/:
        return resources.getString(C0078R.string.common_android_wear_notification_needs_update_text);
    default:
        return resources.getString(C0078R.string.common_google_play_services_unknown_issue);
    }
}