Searched refs:toCertificate (Results 1 – 2 of 2) sorted by relevance
144 private Certificate toCertificate(byte[] bytes) throws CertificateException { in toCertificate() method in AliasLoaderTest283 when(mKeyStoreSpi.engineGetCertificate("rsa1")).thenReturn(toCertificate(mRSACertOne)); in prepareKeyStoreWithCertificates()284 when(mKeyStoreSpi.engineGetCertificate("ec1")).thenReturn(toCertificate(mECCertOne)); in prepareKeyStoreWithCertificates()285 when(mKeyStoreSpi.engineGetCertificate("rsa2")).thenReturn(toCertificate(mRSACertTwo)); in prepareKeyStoreWithCertificates()286 when(mKeyStoreSpi.engineGetCertificate("ec2")).thenReturn(toCertificate(mECCertTwo)); in prepareKeyStoreWithCertificates()
744 X509Certificate cert = KeyChain.toCertificate(encodedCertificate); in doInBackground()959 X509Certificate certificate = KeyChain.toCertificate(encodedCertificate); in getX509CertsFromCertHolder()