Home
last modified time | relevance | path

Searched refs:getCertificate (Results 1 – 12 of 12) sorted by relevance

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiKeyStoreTest.java252 when(mKeyStore.getCertificate(eq(USER_CERT_ALIAS))).thenReturn( in testConfigureSuiteBRsa3072()
254 when(mKeyStore.getCertificate(eq(USER_CA_CERT_ALIASES[0]))).thenReturn( in testConfigureSuiteBRsa3072()
280 when(mKeyStore.getCertificate(eq(USER_CERT_ALIAS))).thenReturn( in testConfigureSuiteBEcdsa()
282 when(mKeyStore.getCertificate(eq(USER_CA_CERT_ALIASES[0]))).thenReturn( in testConfigureSuiteBEcdsa()
308 when(mKeyStore.getCertificate(eq(USER_CERT_ALIAS))).thenReturn( in testConfigurationFailureSuiteB()
310 when(mKeyStore.getCertificate(eq(USER_CA_CERT_ALIASES[0]))).thenReturn( in testConfigurationFailureSuiteB()
334 when(mKeyStore.getCertificate(eq(USER_CERT_ALIAS))).thenReturn( in testConfigurationFailureSuiteBNon3072Rsa()
336 when(mKeyStore.getCertificate(eq(USER_CA_CERT_ALIASES[0]))).thenReturn( in testConfigurationFailureSuiteBNon3072Rsa()
361 when(mKeyStore.getCertificate(eq(USER_CERT_ALIAS))).thenReturn( in testConfigurationFailureSuiteB2048Rsa()
363 when(mKeyStore.getCertificate(eq(USER_CA_CERT_ALIASES[0]))).thenReturn( in testConfigurationFailureSuiteB2048Rsa()
[all …]
/packages/apps/KeyChain/tests/src/com/android/keychain/tests/
DBasicKeyChainServiceTest.java156 assertThat(mKeyChainService.getCertificate(ALIAS_IMPORTED)).isNull(); in testInstallAndRemoveKeyPair()
162 privateKeyEntry.getCertificate().getEncoded(), in testInstallAndRemoveKeyPair()
169 assertThat(mKeyChainService.getCertificate(ALIAS_IMPORTED)).isNotNull(); in testInstallAndRemoveKeyPair()
175 assertThat(mKeyChainService.getCertificate(ALIAS_IMPORTED)).isNotNull(); in testInstallAndRemoveKeyPair()
188 privateKeyEntry.getCertificate().getEncoded(), in testUserSelectability()
311 assertThat(mKeyChainService.getCertificate(ALIAS_GENERATED)).isEqualTo(userCert); in testSetKeyPairCertificate()
318 assertThat(mKeyChainService.getCertificate(ALIAS_GENERATED)).isEqualTo(newUserCert); in testSetKeyPairCertificate()
330 privateKeyEntry.getCertificate().getEncoded(), in testInstallKeyPairErrorOnAliasSelectionDeniedKey()
444 privateKeyEntry.getCertificate().getEncoded(), in installTestRsaKey()
/packages/apps/KeyChain/robotests/src/com/android/keychain/
DKeyChainServiceRoboTest.java175 doReturn(mCert).when(mockCertStore).getCertificate("alias"); in testCaRemoveSuccessLogging()
187 doReturn(mCert).when(mockCertStore).getCertificate("alias"); in testCaRemoveFailedLogging()
200 doReturn(mCert).when(mockCertStore).getCertificate("alias"); in testNoLoggingWhenDisabled()
250 byte[] certificate = mKeyChain.getCertificate(NON_EXISTING_ALIAS); in testGetCertificateReturnsNullForNonExistingAlias()
DShadowTrustedCertificateStore.java48 public Certificate getCertificate(String alias) { in getCertificate() method in ShadowTrustedCertificateStore
49 return sDelegate.getCertificate(alias); in getCertificate()
/packages/apps/KeyChain/src/com/android/keychain/
DKeyChainService.java259 @Override public byte[] getCertificate(String alias) {
266 final Certificate cert = mKeyStore.getCertificate(alias);
285 return mKeyStore.getCertificate(alias).getEncoded();
694 final Certificate cert = mTrustedCertificateStore.getCertificate(alias);
799 .getCertificate(alias, includeDeletedSystem);
817 X509Certificate root = (X509Certificate) mTrustedCertificateStore.getCertificate(
DKeyChainActivity.java757 cert = keyStore.getCertificate(alias); in loadCertificate()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiKeyStore.java323 caCert = mKeyStore.getCertificate(caAlias); in updateNetworkKeys()
348 clientCert = mKeyStore.getCertificate(config.enterpriseConfig in updateNetworkKeys()
/packages/services/BuiltInPrintService/src/com/android/bips/
DLocalPrintJob.java273 byte[] certificate = jobStatus.getCertificate(); in handleJobStatus()
326 byte[] certificate = jobStatus.getCertificate(); in handleBadCertificate()
/packages/apps/Settings/src/com/android/settings/utils/
DAndroidKeystoreAliasLoader.java90 if (keyStore.getCertificate(alias) != null) { in AndroidKeystoreAliasLoader()
/packages/services/BuiltInPrintService/src/com/android/bips/ipp/
DJobStatus.java112 public byte[] getCertificate() { in getCertificate() method in JobStatus
/packages/modules/CaptivePortalLogin/src/com/android/captiveportallogin/
DCaptivePortalLoginActivity.java669 sslErrorName(error), sanitizeURL(errorUrl), error.getCertificate())); in onReceivedSslError()
843 SslCertificate cert = error.getCertificate(); in setViewSecurityCertificate()
/packages/apps/CertInstaller/src/com/android/certinstaller/
DCredentialHelper.java435 mUserCert = (X509Certificate) entry.getCertificate(); in installFrom()