Home
last modified time | relevance | path

Searched refs:Certificate (Results 1 – 25 of 55) sorted by relevance

123

/frameworks/base/media/lib/signer/java/com/android/mediadrm/signer/
DMediaDrmSigner.java66 public final static class Certificate { class in MediaDrmSigner
67 private final MediaDrm.Certificate mCertificate;
69 Certificate(MediaDrm.Certificate certificate) { in Certificate() method in MediaDrmSigner.Certificate
118 public static Certificate provideCertificateResponse(MediaDrm drm, byte[] response) in provideCertificateResponse()
120 return new Certificate(drm.provideCertificateResponse(response)); in provideCertificateResponse()
/frameworks/base/core/java/android/util/jar/
DStrictJarVerifier.java27 import java.security.cert.Certificate;
82 private final Hashtable<String, Certificate[]> certificates =
83 new Hashtable<String, Certificate[]>(5);
85 private final Hashtable<String, Certificate[][]> verifiedEntries =
86 new Hashtable<String, Certificate[][]>();
100 private final Certificate[][] certChains;
102 private final Hashtable<String, Certificate[][]> verifiedEntries;
105 Certificate[][] certChains, Hashtable<String, Certificate[][]> verifedEntries) { in VerifierEntry()
211 ArrayList<Certificate[]> certChains = new ArrayList<Certificate[]>(); in initEntry()
219 Certificate[] certChain = certificates.get(signatureFile); in initEntry()
[all …]
DStrictJarFile.java25 import java.security.cert.Certificate;
135 public Certificate[][] getCertificateChains(ZipEntry ze) { in getCertificateChains()
154 public Certificate[] getCertificates(ZipEntry ze) { in getCertificates()
156 Certificate[][] certChains = verifier.getCertificateChains(ze.getName()); in getCertificates()
160 for (Certificate[] chain : certChains) { in getCertificates()
165 Certificate[] certs = new Certificate[count]; in getCertificates()
167 for (Certificate[] chain : certChains) { in getCertificates()
/frameworks/base/keystore/tests/src/android/security/keystore/
DAndroidKeyStoreTest.java41 import java.security.cert.Certificate;
906 Certificate retrieved = mKeyStore.getCertificate(TEST_ALIAS_1); in testKeyStore_GetCertificate_Single_Encrypted_Success()
911 Certificate actual = f.generateCertificate(new ByteArrayInputStream(FAKE_RSA_CA_1)); in testKeyStore_GetCertificate_Single_Encrypted_Success()
934 Certificate actual = f.generateCertificate(new ByteArrayInputStream(FAKE_RSA_CA_1)); in testKeyStore_GetCertificateAlias_CAEntry_Encrypted_Success()
954 Certificate actual = f.generateCertificate(new ByteArrayInputStream(FAKE_RSA_USER_1)); in testKeyStore_GetCertificateAlias_PrivateKeyEntry_Encrypted_Success()
979 Certificate actual = f.generateCertificate(new ByteArrayInputStream(FAKE_RSA_CA_1)); in testKeyStore_GetCertificateAlias_CAEntry_WithPrivateKeyUsingCA_Encrypted_Success()
992 Certificate actual = f.generateCertificate(new ByteArrayInputStream(FAKE_RSA_CA_1)); in testKeyStore_GetCertificateAlias_NonExist_Empty_Encrypted_Failure()
1007 Certificate userCert = f.generateCertificate(new ByteArrayInputStream(FAKE_RSA_USER_1)); in testKeyStore_GetCertificateAlias_NonExist_Encrypted_Failure()
1026 Certificate[] expected = new Certificate[2]; in testKeyStore_GetCertificateChain_SingleLength_Encrypted_Success()
1030 Certificate[] actual = mKeyStore.getCertificateChain(TEST_ALIAS_1); in testKeyStore_GetCertificateChain_SingleLength_Encrypted_Success()
[all …]
DAndroidKeyPairGeneratorTest.java33 import java.security.cert.Certificate;
372 final Certificate userCert = in assertKeyPairCorrect()
/frameworks/base/core/java/android/security/net/config/
DTrustedCertificateStoreAdapter.java20 import java.security.cert.Certificate;
78 public Certificate getCertificate(String alias) { in getCertificate()
83 public Certificate getCertificate(String alias, boolean includeDeletedSystem) { in getCertificate()
113 public String getCertificateAlias(Certificate c) { in getCertificateAlias()
118 public String getCertificateAlias(Certificate c, boolean includeDeletedSystem) { in getCertificateAlias()
DResourceCertificateSource.java23 import java.security.cert.Certificate;
56 Collection<? extends Certificate> certs; in ensureInitialized()
69 for (Certificate cert : certs) { in ensureInitialized()
DKeyStoreCertificateSource.java22 import java.security.cert.Certificate;
DDirectoryCertificateSource.java28 import java.security.cert.Certificate;
/frameworks/base/core/java/android/content/pm/
DSignature.java28 import java.security.cert.Certificate;
46 private Certificate[] mCertificateChain;
63 public Signature(Certificate[] certificateChain) throws CertificateEncodingException { in Signature()
176 final Certificate cert = certFactory.generateCertificate(bais); in getPublicKey()
196 for (Certificate c : mCertificateChain) { in getChainSignatures()
/frameworks/base/keystore/java/android/security/keystore/
DAndroidKeyStoreSpi.java47 import java.security.cert.Certificate;
107 public Certificate[] engineGetCertificateChain(String alias) { in engineGetCertificateChain()
117 final Certificate[] caList; in engineGetCertificateChain()
123 caList = new Certificate[caChain.size() + 1]; in engineGetCertificateChain()
131 caList = new Certificate[1]; in engineGetCertificateChain()
140 public Certificate engineGetCertificate(String alias) { in engineGetCertificate()
159 private Certificate getCertificateForTrustedCertificateEntry(byte[] encodedCert) { in getCertificateForTrustedCertificateEntry()
166 private Certificate getCertificateForPrivateKeyEntry(String alias, byte[] encodedCert) { in getCertificateForPrivateKeyEntry()
272 public void engineSetKeyEntry(String alias, Key key, char[] password, Certificate[] chain) in engineSetKeyEntry()
340 private void setPrivateKeyEntry(String alias, PrivateKey key, Certificate[] chain, in setPrivateKeyEntry()
[all …]
/frameworks/base/keystore/java/android/security/
DCredentials.java37 import java.security.cert.Certificate;
131 public static byte[] convertToPem(Certificate... objects) in convertToPem()
136 for (Certificate o : objects) { in convertToPem()
159Certificate c = cf.generateCertificate(new ByteArrayInputStream(o.getContent())); in convertFromPem()
DKeyChain.java41 import java.security.cert.Certificate;
509 Certificate cert = certFactory.generateCertificate(new ByteArrayInputStream(bytes)); in toCertificate()
DKeyPairGeneratorSpec.java30 import java.security.cert.Certificate;
/frameworks/base/packages/Osu/src/com/android/hotspot2/osu/
DWiFiKeyManager.java12 import java.security.cert.Certificate;
45 Certificate cert = mKeyStore.getCertificate(alias); in enableClientAuth()
151 for (Certificate certificate : mKeyStore.getCertificateChain(alias)) { in getCertificateChain()
DOSUSocketFactory.java23 import java.security.cert.Certificate;
289 Certificate cert = keyStore.getCertificate(alias); in getCert()
300 Certificate cert = keyStore.getCertificate( in getRootCerts()
329 public void check(Certificate cert, Collection<String> unresolvedCritExts) in check()
DClientKeyManager.java14 import java.security.cert.Certificate;
89 for (Certificate certificate : in getCertificateChain()
DOSUManager.java38 import java.security.cert.Certificate;
146 Certificate cert = keyStore.getCertificate(alias); in loadKeyStore()
172 Certificate cert = keyStore.getCertificate(alias); in loadKeyStore()
226 Certificate cert = certFactory.generateCertificate(in); in readCertsFromDisk()
940 Certificate cert = keyStore.getCertificate(alias); in deleteCerts()
/frameworks/base/core/java/org/apache/http/conn/ssl/
DAbstractVerifier.java37 import java.security.cert.Certificate;
99 Certificate[] certs = session.getPeerCertificates(); in verify()
106 Certificate[] certs = session.getPeerCertificates(); in verify()
/frameworks/base/media/java/android/media/
DMediaDrm.java905 private native Certificate provideProvisionResponseNative(@NonNull byte[] response) in provideProvisionResponseNative()
1220 public static final class Certificate { class
1221 Certificate() {} in Certificate() method in Certificate
1274 public Certificate provideCertificateResponse(@NonNull byte[] response) in provideCertificateResponse()
/frameworks/base/packages/Osu/src/com/android/anqp/eap/
DCredential.java20 Certificate, enumConstant
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/anqp/eap/
DCredential.java20 Certificate, enumConstant
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/configparse/
DConfigBuilder.java31 import java.security.cert.Certificate;
144 Certificate[] chain = ks.getCertificateChain(alias); in parse()
147 for (Certificate certificate : chain) { in parse()
/frameworks/base/tests/NetworkSecurityConfigTest/src/android/security/net/config/
DNetworkSecurityConfigTests.java28 import java.security.cert.Certificate;
89 Certificate cert = factory.generateCertificate(new ByteArrayInputStream(TEST_CA_BYTES));
/frameworks/base/core/java/android/net/http/
DSslCertificate.java32 import java.security.cert.Certificate;
132 Certificate cert = certFactory.generateCertificate(new ByteArrayInputStream(bytes)); in restoreState()

123