HomeSort by relevance Sort by last modified time
    Searched refs:Certificate (Results 126 - 150 of 402) sorted by null

1 2 3 4 56 7 8 91011>>

  /prebuilts/go/linux-x86/src/crypto/tls/
tls.go 30 // at least one certificate or else set GetCertificate.
62 // at least one certificate or else set GetCertificate.
73 // at least one certificate or else set GetCertificate.
174 // of files. The files must contain PEM encoded data. The certificate file
175 // may contain intermediate certificates following the leaf certificate to
176 // form a certificate chain. On successful return, Certificate.Leaf will
177 // be nil because the parsed form of the certificate is not retained.
178 func LoadX509KeyPair(certFile, keyFile string) (Certificate, error) {
181 return Certificate{}, er
    [all...]
  /cts/tests/tests/keystore/src/android/keystore/cts/
AndroidKeyStoreTest.java 49 import java.security.cert.Certificate;
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/keystore/pkcs12/
PKCS12KeyStoreSpi.java 25 import java.security.cert.Certificate;
135 static final int CERTIFICATE = 1;
282 * tricky if a certificate appears in more than one chain... the store method
291 Certificate c = (Certificate)certs.remove(alias);
303 c = (Certificate)keyCerts.remove(id);
315 public Certificate engineGetCertificate(
323 Certificate c = (Certificate)certs.get(alias);
333 c = (Certificate)keyCerts.get(id)
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/x509/
AttributeCertificateIssuer.java 6 import java.security.cert.Certificate;
23 * Carrying class for an attribute certificate issuer.
89 * Return any principal objects inside the attribute certificate issuer
141 public boolean match(Certificate cert)
206 return match((Certificate)obj);
  /external/conscrypt/openjdk/src/test/java/org/conscrypt/
AbstractSessionContextTest.java 28 import java.security.cert.Certificate;
97 Certificate mockCert = mock(Certificate.class);
  /external/okhttp/samples/guide/src/main/java/com/squareup/okhttp/recipes/
CustomTrust.java 28 import java.security.cert.Certificate;
62 * Returns an input stream containing one or more certificate PEM files. This implementation just
72 + "-----BEGIN CERTIFICATE-----\n"
105 + "-----END CERTIFICATE-----\n";
107 + "-----BEGIN CERTIFICATE-----\n"
133 + "-----END CERTIFICATE-----\n";
146 * set. This is useful in development where certificate authority-trusted certificates aren't
147 * available. Or in production, to avoid reliance on third-party certificate authorities.
155 * operational complexity and limit your ability to migrate between certificate authorities. Do
162 Collection<? extends Certificate> certificates = certificateFactory.generateCertificates(in)
    [all...]
  /libcore/luni/src/test/java/tests/targets/security/
KeyStoreTest.java 33 import java.security.cert.Certificate;
103 Certificate certificate = null; local
105 certificate = certificateFactory
114 generator = KeyPairGenerator.getInstance(certificate.getPublicKey()
123 .getPrivate(), new Certificate[] {certificate});
167 private String encodedCertificate = "-----BEGIN CERTIFICATE-----\n"
189 + "-----END CERTIFICATE-----\n";
  /bootable/recovery/tests/component/
verifier_test.cpp 54 std::vector<Certificate> certs;
73 std::vector<Certificate> certs;
79 std::vector<Certificate> certs;
125 std::vector<Certificate> certs;
144 std::vector<Certificate> certs;
171 std::vector<Certificate> certs;
  /libcore/luni/src/test/java/tests/security/cert/
X509CRL2Test.java 26 import java.security.cert.Certificate;
41 String certificate = "-----BEGIN CERTIFICATE-----\n" field in class:X509CRL2Test
63 + "-----END CERTIFICATE-----\n";
68 ByteArrayInputStream certArray = new ByteArrayInputStream(certificate
194 public boolean isRevoked(Certificate cert) {
  /libcore/ojluni/src/main/java/sun/security/provider/certpath/
AdaptableX509CertSelector.java 30 import java.security.cert.Certificate;
43 * An adaptable X509 certificate selector for forward certification path
46 * additional rules for certificate validity.
69 * Normally, we may not have to check that a certificate validity period
70 * must fall within its issuer's certificate validity period. However,
73 * to determine the right issuer's certificate.
81 * within the certificate validity period for the X509Certificate
83 * within the certificate validity period for the X509Certificate
143 * Decides whether a <code>Certificate</code> should be selected.
146 * and serialNumber criteria and adds additional rules for certificate
    [all...]
  /libcore/support/src/test/java/org/apache/harmony/security/tests/support/
KeyStoreTestSupport.java 28 import java.security.cert.Certificate;
116 * Additional class to create Certificate and Key objects
118 public static class MCertificate extends Certificate {
  /external/boringssl/src/ssl/test/runner/
key_agreement.go 40 func (ka *rsaKeyAgreement) generateServerKeyExchange(config *Config, cert *Certificate, clientHello *clientHelloMsg, hello *serverHelloMsg) (*serverKeyExchangeMsg, error) {
97 func (ka *rsaKeyAgreement) processClientKeyExchange(config *Config, cert *Certificate, ckx *clientKeyExchangeMsg, version uint16) ([]byte, error) {
135 func (ka *rsaKeyAgreement) processServerKeyExchange(config *Config, clientHello *clientHelloMsg, serverHello *serverHelloMsg, cert *x509.Certificate, skx *serverKeyExchangeMsg) error {
139 func (ka *rsaKeyAgreement) generateClientKeyExchange(config *Config, clientHello *clientHelloMsg, cert *x509.Certificate) ([]byte, *clientKeyExchangeMsg, error) {
305 signParameters(config *Config, cert *Certificate, clientHello *clientHelloMsg, hello *serverHelloMsg, params []byte) (*serverKeyExchangeMsg, error)
306 verifyParameters(config *Config, clientHello *clientHelloMsg, serverHello *serverHelloMsg, cert *x509.Certificate, params []byte, sig []byte) error
313 func (ka *nilKeyAgreementAuthentication) signParameters(config *Config, cert *Certificate, clientHello *clientHelloMsg, hello *serverHelloMsg, params []byte) (*serverKeyExchangeMsg, error) {
319 func (ka *nilKeyAgreementAuthentication) verifyParameters(config *Config, clientHello *clientHelloMsg, serverHello *serverHelloMsg, cert *x509.Certificate, params []byte, sig []byte) error {
331 func (ka *signedKeyAgreement) signParameters(config *Config, cert *Certificate, clientHello *clientHelloMsg, hello *serverHelloMsg, params []byte) (*serverKeyExchangeMsg, error) {
379 func (ka *signedKeyAgreement) verifyParameters(config *Config, clientHello *clientHelloMsg, serverHello *serverHelloMsg, cert *x509.Certificate, params []byte, sig []byte) error
    [all...]
  /build/make/tools/releasetools/
check_ota_package_signature.py 18 Verify a given OTA package with the specifed certificate.
50 """Verify the given package with the certificate.
65 print('Certificate: %s' % (cert,))
149 parser.add_argument('certificate', help='The certificate to be used.')
153 verify_package(args.certificate, args.package)
  /frameworks/base/keystore/java/android/security/
Credentials.java 37 import java.security.cert.Certificate;
92 * Intent extra: install the certificate bundle as this UID instead of
108 * Intent extra: name for the user's certificate.
113 * Intent extra: data for the user's certificate in PEM-encoded X.509.
118 * Intent extra: name for CA certificate chain
123 * Intent extra: data for CA certificate chain in PEM-encoded X.509.
131 public static byte[] convertToPem(Certificate... objects)
136 for (Certificate o : objects) {
137 pw.writeObject(new PemObject("CERTIFICATE", o.getEncoded()));
158 if (o.getType().equals("CERTIFICATE")) {
    [all...]
  /frameworks/base/packages/Osu/src/com/android/anqp/eap/
Credential.java 20 Certificate,
  /libcore/ojluni/src/main/java/java/security/cert/
X509Certificate.java 40 * way to access all the attributes of an X.509 certificate.
45 * Certificate ::= SEQUENCE {
57 * These certificates are managed and vouched for by <em>Certificate
67 * Public Key Infrastructure Certificate and CRL Profile</a>.
88 * Certificates are instantiated using a certificate factory. The following is
89 * an example of how to instantiate an X.509 certificate:
100 * @see Certificate
105 public abstract class X509Certificate extends Certificate
120 * Checks that the certificate is currently valid. It is if
122 * certificate
    [all...]
  /libcore/ojluni/src/main/java/javax/crypto/
JarVerifier.java 65 * Verify the JAR file is signed by an entity which has a certificate
133 * framework signing certificate.
137 * the framework signing certificate
139 static void verifyPolicySigned(java.security.cert.Certificate[] certs)
  /prebuilts/go/darwin-x86/src/crypto/x509/
root_unix.go 14 // Possible directories with certificate files; stop after successfully
21 func (c *Certificate) systemVerify(opts *VerifyOptions) (chains [][]*Certificate, err error) {
  /prebuilts/go/linux-x86/src/crypto/x509/
root_unix.go 14 // Possible directories with certificate files; stop after successfully
21 func (c *Certificate) systemVerify(opts *VerifyOptions) (chains [][]*Certificate, err error) {
  /external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/tls/
CertificateChainCleanerTest.java 20 import java.security.cert.Certificate;
36 new RealTrustRootIndex(root.certificate));
67 new RealTrustRootIndex(root.certificate));
85 new RealTrustRootIndex(root.certificate));
107 new RealTrustRootIndex(root.certificate));
129 new RealTrustRootIndex(root.certificate));
150 new RealTrustRootIndex(root.certificate));
173 new RealTrustRootIndex(selfSigned.certificate, trusted.certificate));
194 HeldCertificate certificate = new HeldCertificate.Builder( local
    [all...]
  /external/okhttp/okhttp-android-support/src/main/java/com/squareup/okhttp/internal/huc/
JavaApiConverter.java 41 import java.security.cert.Certificate;
118 Certificate[] peerCertificates;
125 Certificate[] localCertificates = httpsUrlConnection.getLocalCertificates();
242 List<Certificate> peerCertificates;
248 List<Certificate> localCertificates = javaSecureCacheResponse.getLocalCertificateChain();
301 public List<Certificate> getLocalCertificateChain() {
304 List<Certificate> certificates = handshake.localCertificates();
309 public List<Certificate> getServerCertificateChain() throws SSLPeerUnverifiedException {
312 List<Certificate> certificates = handshake.peerCertificates();
  /libcore/ojluni/src/main/java/java/util/jar/
JarVerifier.java 337 * Return an array of java.security.cert.Certificate objects for
342 public java.security.cert.Certificate[] getCerts(String name)
347 public java.security.cert.Certificate[] getCerts(JarFile jar, JarEntry entry)
385 * Convert an array of signers into an array of concatenated certificate
388 private static java.security.cert.Certificate[] mapSignersToCertArray(
392 ArrayList<java.security.cert.Certificate> certChains = new ArrayList<>();
398 // Convert into a Certificate[]
400 new java.security.cert.Certificate[certChains.size()]);
613 java.security.cert.Certificate[] vcerts;
623 VerifierCodeSource(Object csdomain, URL location, java.security.cert.Certificate[] certs)
    [all...]
  /external/okhttp/okhttp-android-support/src/test/java/com/squareup/okhttp/internal/huc/
JavaApiConverterTest.java 39 import java.security.cert.Certificate;
70 private static final X509Certificate LOCAL_CERT = certificate(""
71 + "-----BEGIN CERTIFICATE-----\n"
80 + "-----END CERTIFICATE-----");
83 private static final X509Certificate SERVER_CERT = certificate(""
84 + "-----BEGIN CERTIFICATE-----\n"
94 + "-----END CERTIFICATE-----");
161 final List<Certificate> localCertificates = Arrays.<Certificate>asList(LOCAL_CERT);
163 final List<Certificate> serverCertificates = Arrays.<Certificate>asList(SERVER_CERT)
622 private static X509Certificate certificate(String certificate) { method in class:JavaApiConverterTest
    [all...]
  /frameworks/base/keystore/java/android/security/keystore/
AndroidKeyStoreSpi.java 47 import java.security.cert.Certificate;
74 * Credentials.USER_CERTIFICATE as the first certificate in the chain (the one
79 * with a single certificate.
107 public Certificate[] engineGetCertificateChain(String alias) {
117 final Certificate[] caList;
123 caList = new Certificate[caChain.size() + 1];
131 caList = new Certificate[1];
140 public Certificate engineGetCertificate(String alias) {
155 // This entry/alias does not contain a certificate.
159 private Certificate getCertificateForTrustedCertificateEntry(byte[] encodedCert)
    [all...]
  /libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
KeyStore2Test.java 40 import java.security.cert.Certificate;
76 // creating a certificate
77 String certificate = "-----BEGIN CERTIFICATE-----\n" field in class:KeyStore2Test
91 + "-----END CERTIFICATE-----\n";
93 ByteArrayInputStream certArray = new ByteArrayInputStream(certificate.getBytes());
95 String certificate2 = "-----BEGIN CERTIFICATE-----\n"
109 + "-----END CERTIFICATE-----\n";
113 String certificate3 = "-----BEGIN CERTIFICATE-----\n"
132 + "-----END CERTIFICATE-----\n"
    [all...]

Completed in 864 milliseconds

1 2 3 4 56 7 8 91011>>