Lines Matching refs:mCredentials
76 private CredentialHelper mCredentials; field in CertInstaller
119 mCredentials = createCredentialHelper(getIntent()); in onCreate()
124 if (!mCredentials.containsAnyRawData()) { in onCreate()
131 if (mCredentials.hasUserCertificate() && !mCredentials.hasPrivateKey()) { in onCreate()
133 } else if (mCredentials.hasPrivateKey() && !mCredentials.hasUserCertificate()) { in onCreate()
141 mCredentials.onRestoreStates(savedStates); in onCreate()
148 return mCredentials.hasCaCerts() && !mCredentials.hasPrivateKey() && in installingCaCertificate()
149 !mCredentials.hasUserCertificate(); in installingCaCertificate()
174 mCredentials.onSaveStates(outStates); in onSaveInstanceState()
220 Log.d(TAG, "credential is added: " + mCredentials.getName()); in onActivityResult()
221 … if (mCredentials.getCertUsageSelected().equals(Credentials.CERTIFICATE_USAGE_WIFI)) { in onActivityResult()
237 if (mCredentials.hasPkcs12KeyStore()) { in extractPkcs12OrInstall()
238 if (mCredentials.hasPassword()) { in extractPkcs12OrInstall()
244 if (mCredentials.calledBySettings()) { in extractPkcs12OrInstall()
259 return mCredentials.installVpnAndAppsTrustAnchors(CertInstaller.this, in doInBackground()
284 mCredentials.hasPrivateKey() && mCredentials.hasUserCertificate(); in installOthers()
285 boolean hasCaCertificate = mCredentials.hasCaCerts(); in installOthers()
303 switch (mCredentials.getCertUsageSelected()) { in validCertificateSelected()
305 return mCredentials.hasOnlyVpnAndAppsTrustAnchors(); in validCertificateSelected()
307 return mCredentials.hasUserCertificate() in validCertificateSelected()
308 && !mCredentials.hasOnlyVpnAndAppsTrustAnchors(); in validCertificateSelected()
317 if (!mCredentials.hasAnyForSystemInstall()) { in installCertificateOrShowNameDialog()
319 } else if (mCredentials.hasOnlyVpnAndAppsTrustAnchors()) { in installCertificateOrShowNameDialog()
337 return mCredentials.extractPkcs12(password); in extractPkcs12InBackground()
356 if (mCredentials.calledBySettings()) { in onExtractionDone()
373 if (mCredentials.hasOnlyVpnAndAppsTrustAnchors()) { in createRedirectOrSelectUsageDialog()
381 final String callingPkg = mCredentials.getReferrer(); in getCallingAppLabel()
421 mCredentials.setCertUsageSelectedAndUid(Credentials.CERTIFICATE_USAGE_USER); in createSelectCertificateUsageDialog()
424 mCredentials.setCertUsageSelectedAndUid(Credentials.CERTIFICATE_USAGE_WIFI); in createSelectCertificateUsageDialog()
457 switch (mCredentials.getCertUsageSelected()) { in getCertificateUsageName()
477 String title = mCredentials.getName(); in createPkcs12PasswordDialog()
519 mCredentials.setName(name); in createNameCertificateDialog()
533 mCredentials.createSystemInstallIntent(context), in installCertificateToKeystore()
542 String name = mCredentials.getName(); in getDefaultName()
600 return mCredentials; in getCredentials()