HomeSort by relevance Sort by last modified time
    Searched refs:Certificate (Results 151 - 175 of 423) sorted by null

1 2 3 4 5 67 8 91011>>

  /external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/
KeyStore2Test.java 38 import java.security.cert.Certificate;
71 // creating a certificate
72 String certificate = "-----BEGIN CERTIFICATE-----\n" field in class:KeyStore2Test
86 + "-----END CERTIFICATE-----\n";
88 ByteArrayInputStream certArray = new ByteArrayInputStream(certificate
91 String certificate2 = "-----BEGIN CERTIFICATE-----\n"
105 + "-----END CERTIFICATE-----\n";
110 String certificate3 = "-----BEGIN CERTIFICATE-----\n"
129 + "-----END CERTIFICATE-----\n"
    [all...]
KeyStoreSpiTest.java 32 import java.security.cert.Certificate;
126 ksSpi.engineSetKeyEntry("", null, new char[0], new Certificate[0]);
131 ksSpi.engineSetKeyEntry("", new byte[0], new Certificate[0]);
  /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/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";
  /external/apache-harmony/security/src/test/support/common/java/org/apache/harmony/security/tests/support/
KeyStoreTestSupport.java 28 import java.security.cert.Certificate;
115 * Additional class to create Certificate and Key objects
117 public static class MCertificate extends Certificate {
  /libcore/luni/src/test/java/libcore/java/security/cert/
X509CertSelectorTest.java 22 import java.security.cert.Certificate;
133 private X509Certificate bouncycastleToJava(Certificate certificate) throws Exception {
134 byte[] encoded = certificate.getEncoded();
  /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 31 import java.security.cert.Certificate;
42 * An adaptable X509 certificate selector for forward certification path
67 * Normally, we may not have to check that a certificate validity period
68 * must fall within its issuer's certificate validity period. However,
71 * to determine the right issuer's certificate.
79 * within the certificate validity period for the X509Certificate
81 * within the certificate validity period for the X509Certificate
132 * Decides whether a <code>Certificate</code> should be selected.
134 * For the purpose of compatibility, when a certificate is of
135 * version 1 and version 2, or the certificate does not includ
    [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 {
  /prebuilts/go/darwin-x86/src/crypto/tls/
tls.go 24 // at least one certificate.
57 // at least one certificate.
68 // at least one certificate.
170 func LoadX509KeyPair(certFile, keyFile string) (Certificate, error) {
173 return Certificate{}, err
177 return Certificate{}, err
184 func X509KeyPair(certPEMBlock, keyPEMBlock []byte) (Certificate, error) {
185 var cert Certificate
187 fail := func(err error) (Certificate, error) { return Certificate{}, err
    [all...]
common.go 110 // Certificate types (for certificateRequestMsg)
112 certTypeRSASign = 1 // A certificate containing an RSA key
113 certTypeDSSSign = 2 // A certificate containing a DSA key
114 certTypeRSAFixedDH = 3 // A certificate containing a static DH key
115 certTypeDSSFixedDH = 4 // A certificate containing a static DH key
118 certTypeECDSASign = 64 // A certificate containing an ECDSA-capable public key, signed with ECDSA.
119 certTypeRSAFixedECDH = 65 // A certificate containing an ECDH-capable public key, signed with RSA.
120 certTypeECDSAFixedECDH = 66 // A certificate containing an ECDH-capable public key, signed with ECDSA.
165 PeerCertificates []*x509.Certificate // certificate chain presented by remote pee
    [all...]
  /prebuilts/go/linux-x86/src/crypto/tls/
tls.go 24 // at least one certificate.
57 // at least one certificate.
68 // at least one certificate.
170 func LoadX509KeyPair(certFile, keyFile string) (Certificate, error) {
173 return Certificate{}, err
177 return Certificate{}, err
184 func X509KeyPair(certPEMBlock, keyPEMBlock []byte) (Certificate, error) {
185 var cert Certificate
187 fail := func(err error) (Certificate, error) { return Certificate{}, err
    [all...]
common.go 110 // Certificate types (for certificateRequestMsg)
112 certTypeRSASign = 1 // A certificate containing an RSA key
113 certTypeDSSSign = 2 // A certificate containing a DSA key
114 certTypeRSAFixedDH = 3 // A certificate containing a static DH key
115 certTypeDSSFixedDH = 4 // A certificate containing a static DH key
118 certTypeECDSASign = 64 // A certificate containing an ECDSA-capable public key, signed with ECDSA.
119 certTypeRSAFixedECDH = 65 // A certificate containing an ECDH-capable public key, signed with RSA.
120 certTypeECDSAFixedECDH = 66 // A certificate containing an ECDH-capable public key, signed with ECDSA.
165 PeerCertificates []*x509.Certificate // certificate chain presented by remote pee
    [all...]
  /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,
  /frameworks/opt/net/wifi/service/java/com/android/server/wifi/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
137 * framework signing certificate.
141 * the framework signing certificate
143 static void verifyPolicySigned(java.security.cert.Certificate[] certs)
  /frameworks/base/keystore/tests/src/android/security/keystore/
AndroidKeyStoreTest.java 41 import java.security.cert.Certificate;
    [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 326 * Return an array of java.security.cert.Certificate objects for
331 public java.security.cert.Certificate[] getCerts(String name)
336 public java.security.cert.Certificate[] getCerts(JarFile jar, JarEntry entry)
374 * Convert an array of signers into an array of concatenated certificate
377 private static java.security.cert.Certificate[] mapSignersToCertArray(
387 // Convert into a Certificate[]
388 return (java.security.cert.Certificate[])
390 new java.security.cert.Certificate[certChains.size()]);
602 java.security.cert.Certificate[] vcerts;
612 VerifierCodeSource(Object csdomain, URL location, java.security.cert.Certificate[] certs)
    [all...]
  /external/boringssl/src/ssl/test/runner/
key_agreement.go 37 func (ka *rsaKeyAgreement) generateServerKeyExchange(config *Config, cert *Certificate, clientHello *clientHelloMsg, hello *serverHelloMsg) (*serverKeyExchangeMsg, error) {
101 func (ka *rsaKeyAgreement) processClientKeyExchange(config *Config, cert *Certificate, ckx *clientKeyExchangeMsg, version uint16) ([]byte, error) {
139 func (ka *rsaKeyAgreement) processServerKeyExchange(config *Config, clientHello *clientHelloMsg, serverHello *serverHelloMsg, cert *x509.Certificate, skx *serverKeyExchangeMsg) error {
143 func (ka *rsaKeyAgreement) generateClientKeyExchange(config *Config, clientHello *clientHelloMsg, cert *x509.Certificate) ([]byte, *clientKeyExchangeMsg, error) {
346 signParameters(config *Config, cert *Certificate, clientHello *clientHelloMsg, hello *serverHelloMsg, params []byte) (*serverKeyExchangeMsg, error)
347 verifyParameters(config *Config, clientHello *clientHelloMsg, serverHello *serverHelloMsg, cert *x509.Certificate, params []byte, sig []byte) error
354 func (ka *nilKeyAgreementAuthentication) signParameters(config *Config, cert *Certificate, clientHello *clientHelloMsg, hello *serverHelloMsg, params []byte) (*serverKeyExchangeMsg, error) {
360 func (ka *nilKeyAgreementAuthentication) verifyParameters(config *Config, clientHello *clientHelloMsg, serverHello *serverHelloMsg, cert *x509.Certificate, params []byte, sig []byte) error {
389 func (ka *signedKeyAgreement) signParameters(config *Config, cert *Certificate, clientHello *clientHelloMsg, hello *serverHelloMsg, params []byte) (*serverKeyExchangeMsg, error) {
459 func (ka *signedKeyAgreement) verifyParameters(config *Config, clientHello *clientHelloMsg, serverHello *serverHelloMsg, cert *x509.Certificate, params []byte, sig []byte) error
    [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...]

Completed in 1521 milliseconds

1 2 3 4 5 67 8 91011>>