Home
last modified time | relevance | path

Searched refs:cert (Results 1 – 25 of 38) sorted by relevance

12

/frameworks/base/core/java/android/net/http/
DSslError.java19 import java.security.cert.X509Certificate;
140 int error, SslCertificate cert, String url) { in SslErrorFromChromiumErrorCode() argument
145 return new SslError(SSL_IDMISMATCH, cert, url); in SslErrorFromChromiumErrorCode()
147 return new SslError(SSL_DATE_INVALID, cert, url); in SslErrorFromChromiumErrorCode()
149 return new SslError(SSL_UNTRUSTED, cert, url); in SslErrorFromChromiumErrorCode()
151 return new SslError(SSL_INVALID, cert, url); in SslErrorFromChromiumErrorCode()
DCertificateChainValidator.java26 import java.security.cert.Certificate;
27 import java.security.cert.CertificateException;
28 import java.security.cert.CertificateFactory;
29 import java.security.cert.X509Certificate;
DX509TrustManagerExtensions.java21 import java.security.cert.CertificateException;
22 import java.security.cert.X509Certificate;
DSslCertificate.java30 import java.security.cert.Certificate;
31 import java.security.cert.CertificateEncodingException;
32 import java.security.cert.CertificateException;
33 import java.security.cert.CertificateFactory;
34 import java.security.cert.X509Certificate;
130 Certificate cert = certFactory.generateCertificate(new ByteArrayInputStream(bytes)); in restoreState() local
131 x509Certificate = (X509Certificate) cert; in restoreState()
/frameworks/base/services/java/com/android/server/updates/
DConfigUpdateInstallReceiver.java37 import java.security.cert.Certificate;
38 import java.security.cert.CertificateException;
39 import java.security.cert.CertificateFactory;
40 import java.security.cert.X509Certificate;
78 X509Certificate cert = getCert(context.getContentResolver()); in onReceive() local
97 cert)) { in onReceive()
122 String cert = Settings.Secure.getString(cr, UPDATE_CERTIFICATE_KEY); in getCert() local
125 byte[] derCert = Base64.decode(cert.getBytes(), Base64.DEFAULT); in getCert()
216 String signature, X509Certificate cert) throws Exception { in verifySignature() argument
218 signer.initVerify(cert); in verifySignature()
/frameworks/base/wifi/java/android/net/wifi/
DWifiEnterpriseConfig.java32 import java.security.cert.Certificate;
33 import java.security.cert.CertificateEncodingException;
34 import java.security.cert.CertificateException;
35 import java.security.cert.CertificateFactory;
36 import java.security.cert.X509Certificate;
147 private void writeCertificate(Parcel dest, X509Certificate cert) { in writeCertificate() argument
148 if (cert != null) { in writeCertificate()
150 byte[] certBytes = cert.getEncoded(); in writeCertificate()
196 X509Certificate cert = null;
203 cert = (X509Certificate) cFactory
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/updates/
DCertPinInstallReceiverTest.java33 import java.security.cert.CertificateFactory;
34 import java.security.cert.Certificate;
35 import java.security.cert.X509Certificate;
174 String signature, X509Certificate cert) throws Exception { in verifySignature() argument
176 signer.initVerify(cert); in verifySignature()
193 private String runTest(String cert, String content, String version, String required, String sig) in runTest() argument
196 overrideCert(cert); in runTest()
203 private String runTestWithoutSig(String cert, String content, String version, String required) in runTestWithoutSig() argument
206 return runTest(cert, content, version, required, sig); in runTestWithoutSig()
/frameworks/base/core/java/android/os/
DRecoverySystem.java35 import java.security.cert.Certificate;
36 import java.security.cert.CertificateFactory;
37 import java.security.cert.X509Certificate;
51 import org.apache.harmony.security.provider.cert.X509CertImpl;
211 X509Certificate cert = null; in verifyPackage() local
213 cert = new X509CertImpl((org.apache.harmony.security.x509.Certificate)it.next()); in verifyPackage()
232 PublicKey signatureKey = cert.getPublicKey(); in verifyPackage()
265 alg = cert.getSigAlgName(); in verifyPackage()
270 sig.initVerify(cert); in verifyPackage()
/frameworks/base/keystore/java/android/security/
DAndroidKeyStore.java39 import java.security.cert.Certificate;
40 import java.security.cert.CertificateEncodingException;
41 import java.security.cert.CertificateException;
42 import java.security.cert.CertificateFactory;
43 import java.security.cert.X509Certificate;
350 public void engineSetCertificateEntry(String alias, Certificate cert) throws KeyStoreException { in engineSetCertificateEntry() argument
356 if (cert == null) { in engineSetCertificateEntry()
362 encoded = cert.getEncoded(); in engineSetCertificateEntry()
452 public String engineGetCertificateAlias(Certificate cert) { in engineGetCertificateAlias() argument
453 if (cert == null) { in engineGetCertificateAlias()
[all …]
DAndroidKeyPairGenerator.java34 import java.security.cert.CertificateEncodingException;
35 import java.security.cert.X509Certificate;
132 final X509Certificate cert; in generateKeyPair() local
134 cert = certGen.generate(privKey); in generateKeyPair()
142 certBytes = cert.getEncoded(); in generateKeyPair()
DKeyChain.java32 import java.security.cert.Certificate;
33 import java.security.cert.CertificateException;
34 import java.security.cert.CertificateFactory;
35 import java.security.cert.X509Certificate;
393 Certificate cert = certFactory.generateCertificate(new ByteArrayInputStream(bytes)); in toCertificate() local
394 return (X509Certificate) cert; in toCertificate()
DCredentials.java36 import java.security.cert.Certificate;
37 import java.security.cert.CertificateEncodingException;
38 import java.security.cert.CertificateException;
39 import java.security.cert.CertificateFactory;
40 import java.security.cert.X509Certificate;
DKeyChainAliasCallback.java20 import java.security.cert.X509Certificate;
DKeyStoreParameter.java25 import java.security.cert.Certificate;
DKeyPairGeneratorSpec.java27 import java.security.cert.Certificate;
/frameworks/base/core/java/android/content/pm/
DSignature.java27 import java.security.cert.Certificate;
28 import java.security.cert.CertificateException;
29 import java.security.cert.CertificateFactory;
155 final Certificate cert = certFactory.generateCertificate(bais); in getPublicKey() local
156 return cert.getPublicKey(); in getPublicKey()
/frameworks/base/core/tests/coretests/src/android/net/http/
DSslCertificateTest.java23 import java.security.cert.CertificateFactory;
24 import java.security.cert.X509Certificate;
DX509TrustManagerExtensionsTest.java20 import java.security.cert.X509Certificate;
/frameworks/base/services/java/com/android/server/pm/
DSELinuxMMAC.java125 String cert = parser.getAttributeValue(null, "signature"); in readInstallPolicy() local
126 if (cert == null) { in readInstallPolicy()
134 signature = new Signature(cert); in readInstallPolicy()
144 Slog.i(TAG, "<signer> tag: (" + cert + ") assigned seinfo=" in readInstallPolicy()
/frameworks/base/keystore/tests/src/android/security/
DAndroidKeyStoreTest.java41 import java.security.cert.Certificate;
42 import java.security.cert.CertificateFactory;
43 import java.security.cert.X509Certificate;
1566 byte[] cert, byte[] ca) throws Exception { in assertPrivateKeyEntryEquals() argument
1571 Certificate expectedCert = certFact.generateCertificate(new ByteArrayInputStream(cert)); in assertPrivateKeyEntryEquals()
1815 final Certificate cert = f.generateCertificate(new ByteArrayInputStream(FAKE_RSA_CA_1)); in testKeyStore_SetCertificate_CAExists_Overwrite_Encrypted_Success() local
1818 mKeyStore.setCertificateEntry(TEST_ALIAS_1, cert); in testKeyStore_SetCertificate_CAExists_Overwrite_Encrypted_Success()
1837 final Certificate cert = f.generateCertificate(new ByteArrayInputStream(FAKE_RSA_CA_1)); in testKeyStore_SetCertificate_PrivateKeyExists_Encrypted_Failure() local
1840 mKeyStore.setCertificateEntry(TEST_ALIAS_1, cert); in testKeyStore_SetCertificate_PrivateKeyExists_Encrypted_Failure()
2369 final X509Certificate cert = certGen.generate(privKey); in generateCertificate() local
[all …]
DAndroidKeyPairGeneratorTest.java27 import java.security.cert.Certificate;
28 import java.security.cert.CertificateFactory;
29 import java.security.cert.X509Certificate;
/frameworks/base/core/java/android/app/admin/
DDevicePolicyManager.java41 import java.security.cert.CertificateException;
42 import java.security.cert.CertificateFactory;
43 import java.security.cert.X509Certificate;
1392 X509Certificate cert = (X509Certificate) certFactory.generateCertificate( in hasCaCertInstalled() local
1394 return certStore.getCertificateAlias(cert) != null; in hasCaCertInstalled()
/frameworks/av/media/libstagefright/chromium_http/
Dsupport.h120 net::URLRequest *request, int cert_error, net::X509Certificate *cert);
Dsupport.cpp390 net::URLRequest *request, int cert_error, net::X509Certificate *cert) { in OnSSLCertificateError() argument
393 inherited::OnSSLCertificateError(request, cert_error, cert); in OnSSLCertificateError()
/frameworks/base/docs/html-intl/ja/guide/publishing/
Dapp-signing.jd26 <li><a href="#cert">適切な秘密鍵の取得</a></li>
103 <p>アプリケーションの設計時にこれらの点を考慮し、アプリケーションの署名に<a href="#cert">適切な証明書</a>を使用してください。 </p>
194 <h3 id="cert">適切な秘密鍵の取得</h3>

12