/libcore/ojluni/src/main/java/java/security/cert/ |
CertificateFactory.java | 43 * This class defines the functionality of a certificate factory, which is 44 * used to generate certificate, certification path ({@code CertPath}) 45 * and certificate revocation list (CRL) objects from their encodings. 51 * a {@code CertPath} (a certificate chain) and subsequently 54 * <p>A certificate factory for X.509 must return certificates that are an 59 * which are each bounded at the beginning by -----BEGIN CERTIFICATE-----, and 60 * bounded at the end by -----END CERTIFICATE-----. We convert the 64 * {@code generateCertificate} consumes only one certificate, and the 65 * read position of the input stream is positioned to the next certificate in 75 * Certificate cert = cf.generateCertificate(bis) [all...] |
/prebuilts/go/darwin-x86/src/crypto/x509/ |
cert_pool.go | 17 certs []*Certificate 42 // given certificate. If any candidates were rejected then errCert will be set 45 func (s *CertPool) findVerifiedParents(cert *Certificate) (parents []int, errCert *Certificate, err error) { 69 func (s *CertPool) contains(cert *Certificate) bool { 84 // AddCert adds a certificate to a pool. 85 func (s *CertPool) AddCert(cert *Certificate) { 87 panic("adding nil Certificate to CertPool") 90 // Check that the certificate isn't being added twice. 119 if block.Type != "CERTIFICATE" || len(block.Headers) != 0 [all...] |
/prebuilts/go/linux-x86/src/crypto/x509/ |
cert_pool.go | 17 certs []*Certificate 42 // given certificate. If any candidates were rejected then errCert will be set 45 func (s *CertPool) findVerifiedParents(cert *Certificate) (parents []int, errCert *Certificate, err error) { 69 func (s *CertPool) contains(cert *Certificate) bool { 84 // AddCert adds a certificate to a pool. 85 func (s *CertPool) AddCert(cert *Certificate) { 87 panic("adding nil Certificate to CertPool") 90 // Check that the certificate isn't being added twice. 119 if block.Type != "CERTIFICATE" || len(block.Headers) != 0 [all...] |
/tools/apksig/src/test/java/com/android/apksig/internal/util/ |
Resources.java | 24 import java.security.cert.Certificate; 63 Collection<? extends Certificate> certs; 71 for (Certificate cert : certs) {
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/keystore/bc/ |
BcKeyStoreSpi.java | 22 import java.security.cert.Certificate; 77 static final int CERTIFICATE = 1; 107 Certificate[] certChain; 112 Certificate obj) 114 this.type = CERTIFICATE; 123 Certificate[] certChain) 135 Certificate[] certChain) 186 Certificate[] certChain) 329 Certificate[] getCertificateChain() 341 Certificate cert [all...] |
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/ |
CertificatePinner.java | 19 import java.security.cert.Certificate; 34 * against attacks on certificate authorities. It also prevents connections 35 * through man-in-the-middle certificate authorities either known or unknown to 38 * <p>This class currently pins a certificate's Subject Public Key Info as 45 * <h3>Setting up Certificate Pinning</h3> 68 * As expected, this fails with a certificate pinning exception: <pre> {@code 70 * javax.net.ssl.SSLPeerUnverifiedException: Certificate pinning failure! 71 * Peer certificate chain: 85 * certificate pinner's configuration: <pre> {@code 118 * <h3>Warning: Certificate Pinning is Dangerous!</h3 [all...] |
/cts/hostsidetests/devicepolicy/app/ProfileOwner/src/com/android/cts/profileowner/ |
AdminActionBookkeepingTest.java | 28 import java.security.cert.Certificate; 39 "-----BEGIN CERTIFICATE-----\n" + 59 "-----END CERTIFICATE-----"; 94 final Certificate cert = CertificateFactory.getInstance("X.509")
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/cms/ |
IssuerAndSerialNumber.java | 12 import org.bouncycastle.asn1.x509.Certificate; 73 Certificate certificate) 75 this.name = certificate.getIssuer(); 76 this.serialNumber = certificate.getSerialNumber(); 80 * @deprecated use constructor taking Certificate 83 X509CertificateStructure certificate) 85 this.name = certificate.getIssuer(); 86 this.serialNumber = certificate.getSerialNumber();
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/x509/ |
X509CertStoreSelector.java | 4 import java.security.cert.Certificate; 34 public boolean match(Certificate cert)
|
/external/curl/docs/cmdline-opts/ |
cert-status.d | 4 Help: Verify the status of the server certificate 6 Tells curl to verify the status of the server certificate by using the 7 Certificate Status Request (aka. OCSP stapling) TLS extension. 10 response, if the response suggests that the server certificate has been revoked,
|
/frameworks/base/core/java/android/util/jar/ |
StrictJarFile.java | 29 import java.security.cert.Certificate; 157 * Return all certificate chains for a given {@link ZipEntry} belonging to this jar. 164 public Certificate[][] getCertificateChains(ZipEntry ze) { 183 public Certificate[] getCertificates(ZipEntry ze) { 185 Certificate[][] certChains = verifier.getCertificateChains(ze.getName()); 189 for (Certificate[] chain : certChains) { 194 Certificate[] certs = new Certificate[count]; 196 for (Certificate[] chain : certChains) {
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/security/cert/ |
CertificateTest.java | 35 import javax.security.cert.Certificate; 44 private class TBTCert extends Certificate { 70 * Test for <code>Certificate()</code> constructor<br> 76 assertEquals("Wrong string representation for Certificate", "TBTCert", tbt_cert.toString()); 133 + "which is not an instance of Certificate", tbt_cert
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
WifiKeyStore.java | 31 import java.security.cert.Certificate; 40 * This class provides the methods to access keystore for certificate management. 62 // Certificate and private key management for EnterpriseConfig 71 private static boolean hasHardwareBackedKey(Certificate certificate) { 72 return isHardwareBackedKey(certificate.getPublicKey()); 88 Certificate[] clientCertificateChain = config.getClientCertificateChain(); 163 * Install a certificate into the keystore. 165 * @param name The alias name of the certificate to be installed 166 * @param cert The certificate to be installe [all...] |
/libcore/luni/src/test/java/tests/targets/security/cert/ |
CertificateTest.java | 27 import java.security.cert.Certificate; 41 * Following certificate chain was taken from https://www.verisign.com and 42 * uses MD2withRSA for the root certificate. This chain stops validating 47 * A selfsigned certificate using MD2withRSA 50 * Certificate: 87 "-----BEGIN CERTIFICATE-----\n" 100 + "-----END CERTIFICATE-----\n"; 103 * A certificate signed by selfSignedCertMD2 106 * Certificate: 146 * Certificate Sign, CRL Sig 597 Certificate certificate = certificateFactory local 610 Certificate certificate = certificateFactory local [all...] |
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
DefaultHostnameVerifierTest.java | 25 import java.security.cert.Certificate; 146 new Certificate[] {new StubX509Certificate("cn=www.example.com")}; 255 X509Certificate cert = parseCertificate("-----BEGIN CERTIFICATE-----\n" 272 + "-----END CERTIFICATE-----"); 280 X509Certificate cert = parseCertificate("-----BEGIN CERTIFICATE-----\n" 296 + "-----END CERTIFICATE-----"); 305 X509Certificate cert = parseCertificate("-----BEGIN CERTIFICATE-----\n" 323 + "-----END CERTIFICATE-----"); 334 X509Certificate cert = parseCertificate("-----BEGIN CERTIFICATE-----\n" 351 + "-----END CERTIFICATE-----") [all...] |
/prebuilts/go/darwin-x86/src/crypto/tls/ |
conn_test.go | 67 Certificates: []Certificate{ 69 Certificate: [][]byte{fromHex(certExampleCom)}, 72 Certificate: [][]byte{fromHex(certWildcardExampleCom)}, 75 Certificate: [][]byte{fromHex(certFooExampleCom)}, 78 Certificate: [][]byte{fromHex(certDoubleWildcardExampleCom)}, 85 pointerToIndex := func(c *Certificate) int { 94 certificateForName := func(name string) *Certificate { 99 t.Errorf("unable to get certificate for name '%s': %s", name, err) 107 t.Errorf("example.com returned certificate %d, not 0", n) 110 t.Errorf("bar.example.com returned certificate %d, not 1", n [all...] |
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...] |
/prebuilts/go/linux-x86/src/crypto/tls/ |
conn_test.go | 67 Certificates: []Certificate{ 69 Certificate: [][]byte{fromHex(certExampleCom)}, 72 Certificate: [][]byte{fromHex(certWildcardExampleCom)}, 75 Certificate: [][]byte{fromHex(certFooExampleCom)}, 78 Certificate: [][]byte{fromHex(certDoubleWildcardExampleCom)}, 85 pointerToIndex := func(c *Certificate) int { 94 certificateForName := func(name string) *Certificate { 99 t.Errorf("unable to get certificate for name '%s': %s", name, err) 107 t.Errorf("example.com returned certificate %d, not 0", n) 110 t.Errorf("bar.example.com returned certificate %d, not 1", n [all...] |
/libcore/luni/src/test/java/tests/security/cert/ |
CertStore2Test.java | 17 import java.security.cert.Certificate; 216 Collection<? extends Certificate> certificates = certStore.getCertificates(null); 223 Collection<? extends Certificate> certificates = certStore.getCertificates(new MyCertSelector()); 317 public boolean match(Certificate cert) { 328 public boolean match(Certificate crl) { 366 public Collection<? extends Certificate> engineGetCertificates( 372 return new ArrayList<Certificate>();
|
CertPathValidatorExceptionTest.java | 33 import java.security.cert.Certificate; 393 * Test for <code>getIndex()</code>. Returns the index of the certificate 443 Certificate cert1 = mock(Certificate.class); 444 Certificate cert2 = mock(Certificate.class); 445 List<Certificate> certList = new ArrayList<Certificate>(); 464 public List<Certificate> getCertificates() { 465 return new Vector<Certificate>(); [all...] |
/external/conscrypt/common/src/main/java/org/conscrypt/ |
KeyManagerImpl.java | 27 import java.security.cert.Certificate; 104 Certificate[] certs = hash.get(alias).getCertificateChain(); 159 final Certificate[] chain = entry.getCertificateChain(); 160 final Certificate cert = chain[0]; 198 // check that a certificate in the chain was issued by one of the specified issuers 199 for (Certificate certFromChain : chain) {
|
OpenSSLX509CertificateFactory.java | 25 import java.security.cert.Certificate; 182 * there is an error during certificate generation. 276 public Certificate engineGenerateCertificate(InputStream inStream) throws CertificateException { 285 public Collection<? extends Certificate> engineGenerateCertificates( 333 public CertPath engineGenerateCertPath(List<? extends Certificate> certificates) 337 final Certificate c = certificates.get(i); 340 throw new CertificateException("Certificate not X.509 type at index " + i);
|
/frameworks/base/core/java/android/content/pm/ |
Signature.java | 28 import java.security.cert.Certificate; 36 * Opaque, immutable representation of a signing certificate associated with an 46 private Certificate[] mCertificateChain; 57 * Create signature from a certificate chain. Used for backward 63 public Signature(Certificate[] certificateChain) throws CertificateEncodingException { 170 * certificate; shouldn't happen. 176 final Certificate cert = certFactory.generateCertificate(bais); 181 * Used for compatibility code that needs to check the certificate chain 196 for (Certificate c : mCertificateChain) {
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
KeyStoreSpiTest.java | 36 import java.security.cert.Certificate; 94 Certificate[] chain) throws KeyStoreException { keyEntryWasSet[0] = true; } 155 ksSpi.engineSetKeyEntry("", null, new char[0], new Certificate[0]); 160 ksSpi.engineSetKeyEntry("", new byte[0], new Certificate[0]); 230 class MyCertificate extends Certificate { 257 return "[My test Certificate, type: " + getType() + "]";
|
/packages/apps/KeyChain/tests/src/com/android/keychain/tests/ |
KeyChainServiceTest.java | 31 import java.security.cert.Certificate; 161 Certificate intermediate1 = pke1.getCertificateChain()[1]; 162 Certificate root1 = TestKeyStore.getClientCertificate().getRootCertificate("RSA"); 172 Certificate intermediate2 = pke2.getCertificateChain()[1]; 173 Certificate root2 = TestKeyStore.getServer().getRootCertificate("RSA"); 210 byte[] certificate = mService.getCertificate(alias1); 211 assertNotNull(certificate); 213 Arrays.toString(certificate));
|