Home
last modified time | relevance | path

Searched refs:certificate (Results 1 – 25 of 48) sorted by relevance

12

/frameworks/base/core/java/android/net/http/
DSslError.java90 public SslError(int error, SslCertificate certificate) { in SslError() argument
91 this(error, certificate, ""); in SslError()
102 public SslError(int error, X509Certificate certificate) { in SslError() argument
103 this(error, certificate, ""); in SslError()
113 public SslError(int error, SslCertificate certificate, String url) { in SslError() argument
114 assert certificate != null; in SslError()
117 mCertificate = certificate; in SslError()
128 public SslError(int error, X509Certificate certificate, String url) { in SslError() argument
129 this(error, new SslCertificate(certificate), url); in SslError()
DSslCertificate.java95 public static Bundle saveState(SslCertificate certificate) { in saveState() argument
96 if (certificate == null) { in saveState()
100 bundle.putString(ISSUED_TO, certificate.getIssuedTo().getDName()); in saveState()
101 bundle.putString(ISSUED_BY, certificate.getIssuedBy().getDName()); in saveState()
102 bundle.putString(VALID_NOT_BEFORE, certificate.getValidNotBefore()); in saveState()
103 bundle.putString(VALID_NOT_AFTER, certificate.getValidNotAfter()); in saveState()
104 X509Certificate x509Certificate = certificate.mX509Certificate; in saveState()
177 public SslCertificate(X509Certificate certificate) { in SslCertificate() argument
178 this(certificate.getSubjectDN().getName(), in SslCertificate()
179 certificate.getIssuerDN().getName(), in SslCertificate()
[all …]
DLoggingEventHandler.java72 public void certificate(SslCertificate certificate) { in certificate() method in LoggingEventHandler
74 HttpLog.v("LoggingEventHandler: certificate(): " + certificate); in certificate()
DEventHandler.java112 public void certificate(SslCertificate certificate); in certificate() argument
DDelegatingSSLSession.java42 public CertificateWrap(Certificate certificate) { in CertificateWrap() argument
43 mCertificate = certificate; in CertificateWrap()
DHttpConnection.java52 eventHandler.certificate(mCertificate); in openConnection()
DHttpsConnection.java152 /* package */ void setCertificate(SslCertificate certificate) { in setCertificate() argument
153 mCertificate = certificate; in setCertificate()
/frameworks/base/docs/html/training/articles/
Dsecurity-ssl.jd15 <li><a href="#UnknownCa">Unknown certificate authority</a></li>
16 <li><a href="#SelfSigned">Self-signed server certificate</a></li>
17 <li><a href="#MissingCa">Missing intermediate certificate authority</a></li>
50 <p>In a typical SSL usage scenario, a server is configured with a certificate containing a
52 and server, the server proves it has the private key by signing its certificate with <a
55 <p>However, anyone can generate their own certificate and private key, so a simple handshake
57 matches the public key of the certificate. One way to solve this problem is to have the client
58 have a set of one or more certificates it trusts. If the certificate is not in the set, the
63 certificate with a new one. Unfortunately, now the client app has to be updated due to what
74 in each release. Similar to a server, a CA has a certificate and a private key. When issuing
[all …]
Dkeystore.jd76 certificate will have. You can replace the certificate at a later
77 time with a certificate signed by a Certificate Authority.</p>
/frameworks/base/media/lib/signer/java/com/android/mediadrm/signer/
DMediaDrmSigner.java69 Certificate(MediaDrm.Certificate certificate) { in Certificate() argument
70 mCertificate = certificate; in Certificate()
/frameworks/base/docs/html/tools/publishing/
Dapp-signing.jd40 <p>Android requires that all apps be digitally signed with a certificate before they can be
41 installed. Android uses this certificate to identify the author of an app, and the certificate
42 does not need to be signed by a certificate authority. Android apps often use self-signed
43 certificates. The app developer holds the certificate's private key.</p>
50 certificate to sign apps in debug mode. To sign apps in release mode, you need to generate
51 your own certificate.</p>
55 <p>In debug mode, you sign your app with a debug certificate generated by the Android SDK tools.
56 This certificate has a private key with a known password, so you can run and debug your app
71 <p>In release mode, you sign your app with your own certificate:</p>
196 <p>You should sign all of your apps with the same certificate throughout the expected lifespan
[all …]
Dpreparing.jd71 <code>.apk</code> file, the release-ready <code>.apk</code> file is signed with your own certificate
112 certificate that is owned by the application's developer (that is, a certificate for which the
113 developer holds the private key). The Android system uses the certificate as a means of identifying
115 certificate that you use for signing does not need to be signed by a certificate authority; the
116 Android system allows you to sign your applications with a self-signed certificate. To learn about
117 certificate requirements, see <a href="{@docRoot}tools/publishing/app-signing.html#cert">Obtain a
322 <p>The Export Wizard assumes that you have a <a href="#billing-keys">certificate and private key</a>
323 suitable for signing your application. If you do not have a suitable certificate and private key,
333 Release Mode</a>. This build method assumes you have a <a href="#billing-keys">certificate and
334 private key</a> suitable for signing your application. If you do not have a suitable certificate and
/frameworks/base/keystore/java/android/security/
DAndroidKeyStore.java133 byte[] certificate = mKeyStore.get(Credentials.USER_CERTIFICATE + alias); in engineGetCertificate()
134 if (certificate != null) { in engineGetCertificate()
135 return toCertificate(certificate); in engineGetCertificate()
138 certificate = mKeyStore.get(Credentials.CA_CERTIFICATE + alias); in engineGetCertificate()
139 if (certificate != null) { in engineGetCertificate()
140 return toCertificate(certificate); in engineGetCertificate()
/frameworks/base/tests/CoreTests/android/core/
DTestEventHandler.java448 public void certificate(SslCertificate certificate) {} in certificate() method in TestEventHandler
730 public void expectSSLCertificateError(SslCertificate certificate) { in expectSSLCertificateError() argument
732 expectCertificate = certificate; in expectSSLCertificateError()
/frameworks/av/drm/mediadrm/plugins/clearkey/
DDrmPlugin.h99 Vector<uint8_t>& certificate, in provideProvisionResponse() argument
102 UNUSED(certificate); in provideProvisionResponse()
/frameworks/base/media/jni/
Dandroid_media_MediaDrm.cpp128 CertificateFields certificate; member
590 GET_FIELD_ID(gFields.certificate.wrappedPrivateKey, clazz, "mWrappedKey", "[B"); in android_media_MediaDrm_native_init()
591 GET_FIELD_ID(gFields.certificate.certificateData, clazz, "mCertificateData", "[B"); in android_media_MediaDrm_native_init()
947 Vector<uint8_t> certificate, wrappedKey; in android_media_MediaDrm_provideProvisionResponseNative() local
949 status_t err = drm->provideProvisionResponse(response, certificate, wrappedKey); in android_media_MediaDrm_provideProvisionResponseNative()
956 if (clazz && certificate.size() && wrappedKey.size()) { in android_media_MediaDrm_provideProvisionResponseNative()
958 jbyteArray jcertificate = VectorToJByteArray(env, certificate); in android_media_MediaDrm_provideProvisionResponseNative()
959 env->SetObjectField(certificateObj, gFields.certificate.certificateData, jcertificate); in android_media_MediaDrm_provideProvisionResponseNative()
962 env->SetObjectField(certificateObj, gFields.certificate.wrappedPrivateKey, jwrappedKey); in android_media_MediaDrm_provideProvisionResponseNative()
/frameworks/av/media/libmedia/
DIDrm.cpp219 Vector<uint8_t> &certificate, in provideProvisionResponse()
227 readVector(reply, certificate); in provideProvisionResponse()
622 Vector<uint8_t> certificate; in onTransact() local
625 status_t result = provideProvisionResponse(response, certificate, wrappedKey); in onTransact()
626 writeVector(reply, certificate); in onTransact()
/frameworks/base/media/lib/signer/
DREADME.txt23 This library will eventually be replaced when the provisioned certificate-
/frameworks/av/include/media/
DIDrm.h70 Vector<uint8_t> &certificate,
/frameworks/base/docs/html/training/in-app-billing/
Dtest-iab-app.jd42 …n for Release</a>. Make sure that you are using your final (not debug) certificate and private key…
49 …<li>Your application is signed with the same certificate that you used for the APK that you upload…
/frameworks/av/drm/mediadrm/plugins/mock/
DMockDrmCryptoPlugin.h85 Vector<uint8_t> &certificate,
/frameworks/av/media/libmediaplayerservice/
DDrm.h75 Vector<uint8_t> &certificate,
DDrm.cpp405 Vector<uint8_t> &certificate, in provideProvisionResponse() argument
417 return mPlugin->provideProvisionResponse(response, certificate, wrappedKey); in provideProvisionResponse()
/frameworks/native/include/media/drm/
DDrmAPI.h189 Vector<uint8_t> &certificate,
/frameworks/base/docs/html/guide/topics/manifest/
Dpermission-element.jd106 application is signed with the same certificate as the application
114 certificate as the application that declared the permission. Please avoid using this

12