Home
last modified time | relevance | path

Searched refs:certFactory (Results 1 – 21 of 21) sorted by relevance

/frameworks/base/core/java/android/security/keystore/recovery/
DX509CertificateParsingUtils.java73 CertificateFactory certFactory; in decodeCert() local
75 certFactory = CertificateFactory.getInstance(CERT_FORMAT); in decodeCert()
80 return (X509Certificate) certFactory.generateCertificate(inStream); in decodeCert()
DRecoveryCertPath.java107 CertificateFactory certFactory; in decodeCertPath() local
109 certFactory = CertificateFactory.getInstance("X.509"); in decodeCertPath()
114 return certFactory.generateCertPath(new ByteArrayInputStream(bytes), CERT_PATH_ENCODING); in decodeCertPath()
/frameworks/base/core/tests/coretests/src/android/security/keystore/recovery/
DTestData.java85 CertificateFactory certFactory = CertificateFactory.getInstance("X.509"); in decodeCertPath() local
86 return certFactory.generateCertPath(new ByteArrayInputStream(certPathBytes), "PkiPath"); in decodeCertPath()
/frameworks/base/core/java/android/util/apk/
DApkSignatureSchemeV3Verifier.java206 CertificateFactory certFactory; in verify() local
208 certFactory = CertificateFactory.getInstance("X.509"); in verify()
221 result = verifySigner(signer, contentDigests, certFactory); in verify()
271 CertificateFactory certFactory) in verifySigner() argument
405 certFactory.generateCertificate(new ByteArrayInputStream(encodedCert)); in verifySigner()
437 return verifyAdditionalAttributes(additionalAttrs, certs, certFactory); in verifySigner()
446 CertificateFactory certFactory) throws IOException, PlatformNotSupportedException { in verifyAdditionalAttributes() argument
463 por = verifyProofOfRotationStruct(attr, certFactory); in verifyAdditionalAttributes()
DApkSignatureSchemeV2Verifier.java177 CertificateFactory certFactory; in verify() local
179 certFactory = CertificateFactory.getInstance("X.509"); in verify()
198 X509Certificate[] certs = verifySigner(signer, contentDigests, certFactory); in verify()
234 CertificateFactory certFactory) throws SecurityException, IOException { in verifySigner() argument
346 certFactory.generateCertificate(new ByteArrayInputStream(encodedCert)); in verifySigner()
DSourceStampVerifier.java237 CertificateFactory certFactory; in verifySourceStampCertificate() local
239 certFactory = CertificateFactory.getInstance("X.509"); in verifySourceStampCertificate()
251 certFactory.generateCertificate( in verifySourceStampCertificate()
458 CertificateFactory certFactory; in verifySourceStampAttributes() local
460 certFactory = CertificateFactory.getInstance("X.509"); in verifySourceStampAttributes()
474 verifiedProofOfRotation = verifyProofOfRotationStruct(attribute, certFactory); in verifySourceStampAttributes()
DApkSignatureSchemeV4Verifier.java222 CertificateFactory certFactory; in verifySigner() local
224 certFactory = CertificateFactory.getInstance("X.509"); in verifySigner()
232 certFactory.generateCertificate(new ByteArrayInputStream(encodedCert)); in verifySigner()
DApkSigningBlockUtils.java821 CertificateFactory certFactory) in verifyProofOfRotationStruct() argument
882 certFactory.generateCertificate(new ByteArrayInputStream(encodedCert)); in verifyProofOfRotationStruct()
/frameworks/base/core/java/android/net/vcn/persistablebundleutils/
DCertUtils.java45 CertificateFactory certFactory = CertificateFactory.getInstance(CERT_TYPE_X509); in certificateFromByteArray() local
47 return (X509Certificate) certFactory.generateCertificate(in); in certificateFromByteArray()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
DTestData.java462 CertificateFactory certFactory = CertificateFactory.getInstance("X.509"); in decodeCertPath() local
463 return certFactory.generateCertPath(new ByteArrayInputStream(certPathBytes), "PkiPath"); in decodeCertPath()
DRecoverableKeyStoreManagerTest.java924 CertificateFactory certFactory = CertificateFactory.getInstance("X.509"); in startRecoverySessionWithCertPath_throwsIfEmptyCertPath() local
925 CertPath emptyCertPath = certFactory.generateCertPath(new ArrayList<X509Certificate>()); in startRecoverySessionWithCertPath_throwsIfEmptyCertPath()
942 CertificateFactory certFactory = CertificateFactory.getInstance("X.509"); in startRecoverySessionWithCertPath_throwsIfInvalidCertPath() local
943 CertPath shortCertPath = certFactory.generateCertPath( in startRecoverySessionWithCertPath_throwsIfInvalidCertPath()
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/certificate/
DCertUtils.java101 CertificateFactory certFactory; in decodeCert() local
103 certFactory = CertificateFactory.getInstance(CERT_FORMAT); in decodeCert()
109 return (X509Certificate) certFactory.generateCertificate(inStream); in decodeCert()
/frameworks/base/keystore/java/android/security/
DKeyChain.java941 CertificateFactory certFactory = CertificateFactory.getInstance("X.509"); in toCertificate() local
942 Certificate cert = certFactory.generateCertificate(new ByteArrayInputStream(bytes)); in toCertificate()
956 CertificateFactory certFactory = CertificateFactory.getInstance("X.509"); in toCertificates() local
957 return (Collection<X509Certificate>) certFactory.generateCertificates( in toCertificates()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DCertificateMonitor.java231 CertificateFactory certFactory = CertificateFactory.getInstance("X.509"); in parseCert() local
232 return (X509Certificate) certFactory.generateCertificate(new ByteArrayInputStream( in parseCert()
DDevicePolicyManagerService.java6884 final CertificateFactory certFactory = CertificateFactory.getInstance("X.509");
6889 (Collection<X509Certificate>) certFactory.generateCertificates(
/frameworks/base/core/java/android/content/pm/
DSignature.java226 final CertificateFactory certFactory = CertificateFactory.getInstance("X.509"); in getPublicKey() local
228 final Certificate cert = certFactory.generateCertificate(bais); in getPublicKey()
/frameworks/base/core/java/android/net/http/
DSslCertificate.java133 CertificateFactory certFactory = CertificateFactory.getInstance("X.509"); in restoreState() local
134 Certificate cert = certFactory.generateCertificate(new ByteArrayInputStream(bytes)); in restoreState()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/certificate/
DCertUtilsTest.java338 CertificateFactory certFactory = CertificateFactory.getInstance("X.509"); in validateCertPath_throwsIfEmptyCertPath() local
339 CertPath emptyCertPath = certFactory.generateCertPath(new ArrayList<X509Certificate>()); in validateCertPath_throwsIfEmptyCertPath()
/frameworks/base/keystore/java/android/security/keystore2/
DAndroidKeyStoreSpi.java239 final CertificateFactory certFactory = CertificateFactory.getInstance("X.509"); in toCertificate() local
240 return (X509Certificate) certFactory.generateCertificate( in toCertificate()
251 final CertificateFactory certFactory = CertificateFactory.getInstance("X.509"); in toCertificates() local
252 return (Collection<X509Certificate>) certFactory.generateCertificates( in toCertificates()
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/storage/
DRecoverableKeyStoreDb.java1408 CertificateFactory certFactory; in decodeCertPath() local
1410 certFactory = CertificateFactory.getInstance("X.509"); in decodeCertPath()
1415 return certFactory.generateCertPath(new ByteArrayInputStream(bytes), CERT_PATH_ENCODING); in decodeCertPath()
/frameworks/base/core/java/android/app/admin/
DDevicePolicyManager.java8267 final CertificateFactory certFactory = CertificateFactory.getInstance("X.509"); in getCaCertAlias() local
8268 final X509Certificate cert = (X509Certificate) certFactory.generateCertificate( in getCaCertAlias()