/libcore/luni/src/test/java/libcore/java/security/cert/ |
H A D | SubjectAlternativeNameTest.java | 66 private X509Certificate bouncycastleToJava(Certificate certificate) throws Exception { argument 67 byte[] encoded = certificate.getEncoded();
|
H A D | X509CertSelectorTest.java | 133 private X509Certificate bouncycastleToJava(Certificate certificate) throws Exception { argument 134 byte[] encoded = certificate.getEncoded();
|
H A D | CertificateFactoryTest.java | 284 Certificate certificate = cf.generateCertificate(certStream); 285 assertNotNull(certificate); 371 certs.add(cert3.certificate); 372 certs.add(cert2.certificate); 373 certs.add(cert1.certificate); 376 duplicatedCerts.add(cert2.certificate); 485 // PKCS7 certificate bags are not guaranteed to be in order. 496 fail("List of certificate should be immutable"); 515 public X509Certificate certificate; field in class:CertificateFactoryTest.KeyHolder 537 serial = issuer.certificate [all...] |
/libcore/luni/src/main/java/javax/net/ssl/ |
H A D | DefaultHostnameVerifier.java | 50 public boolean verify(String host, X509Certificate certificate) { argument 52 ? verifyIpAddress(host, certificate) 53 : verifyHostName(host, certificate); 57 * Returns true if {@code certificate} matches {@code ipAddress}. 59 private boolean verifyIpAddress(String ipAddress, X509Certificate certificate) { argument 60 for (String altName : getSubjectAltNames(certificate, ALT_IPA_NAME)) { 69 * Returns true if {@code certificate} matches {@code hostName}. 71 private boolean verifyHostName(String hostName, X509Certificate certificate) { argument 74 for (String altName : getSubjectAltNames(certificate, ALT_DNS_NAME)) { 82 X500Principal principal = certificate 93 getSubjectAltNames(X509Certificate certificate, int type) argument [all...] |
/libcore/luni/src/test/java/tests/security/cert/ |
H A D | PKIXBuilderParametersTest.java | 48 String certificate = "-----BEGIN CERTIFICATE-----\n" field in class:PKIXBuilderParametersTest 213 * <code>keystore</code> does not contain at least one trusted certificate 239 ByteArrayInputStream certArray = new ByteArrayInputStream(certificate 270 ByteArrayInputStream certArray = new ByteArrayInputStream(certificate 298 ByteArrayInputStream certArray = new ByteArrayInputStream(certificate 341 ByteArrayInputStream certArray = new ByteArrayInputStream(certificate
|
H A D | X509CRL2Test.java | 41 String certificate = "-----BEGIN CERTIFICATE-----\n" field in class:X509CRL2Test 68 ByteArrayInputStream certArray = new ByteArrayInputStream(certificate
|
H A D | X509CRLTest.java | 59 String certificate = "-----BEGIN CERTIFICATE-----\n" field in class:X509CRLTest 75 ByteArrayInputStream certArray = new ByteArrayInputStream(certificate 269 * getRevokedCertificate(X509Certificate certificate) method testing.
|
/libcore/luni/src/main/java/java/security/cert/ |
H A D | X509CRL.java | 34 * Abstract base class for X.509 certificate revocation lists (CRL). 171 // TODO if there is no X.509 certificate provider installed 202 * Returns the CRL entry with the specified certificate serial number. 205 * the certificate serial number to search for a CRL entry. 206 * @return the entry for the specified certificate serial number, or {@code 212 * Returns the CRL entry for the specified certificate. 214 * @param certificate 215 * the certificate to search a CRL entry for. 216 * @return the entry for the specified certificate, or {@code null} if not 219 public X509CRLEntry getRevokedCertificate(X509Certificate certificate) { argument [all...] |
H A D | X509CertSelector.java | 47 * A certificate selector ({@code CertSelector} for selecting {@code 83 * Sets the certificate that a matching certificate must be equal to. 85 * @param certificate 86 * the certificate to match, or null to not check this criteria. 88 public void setCertificate(X509Certificate certificate) { argument 89 certificateEquals = certificate; 93 * Returns the certificate that a matching certificate must be equal to. 95 * @return the certificate t 1102 match(Certificate certificate) argument [all...] |
/libcore/crypto/src/main/java/org/conscrypt/ |
H A D | OpenSSLX509CRL.java | 288 public X509CRLEntry getRevokedCertificate(X509Certificate certificate) { argument 289 if (certificate instanceof OpenSSLX509Certificate) { 290 OpenSSLX509Certificate osslCert = (OpenSSLX509Certificate) certificate; 301 return getRevokedCertificate(certificate.getSerialNumber()); 358 throw new RuntimeException("cannot convert certificate", e);
|
/libcore/luni/src/main/java/java/security/ |
H A D | Identity.java | 85 * @param certificate 88 * if the certificate is not valid. 90 public void addCertificate(Certificate certificate) throws KeyManagementException { argument 91 PublicKey certPK = certificate.getPublicKey(); 102 certificates.add(certificate); 132 * @param certificate 135 * if the certificate is not found. 137 public void removeCertificate(Certificate certificate) throws KeyManagementException { argument 139 if (!certificates.contains(certificate)) { 142 certificates.removeElement(certificate); [all...] |
H A D | Signature.java | 224 * using the certificate of the identity whose signature is going to be 227 * If the given certificate is an instance of {@link X509Certificate} and 228 * has a key usage parameter that indicates, that this certificate is not to 231 * @param certificate 232 * the certificate used to verify a signature. 234 * if the publicKey in the certificate is not valid or not to be 237 public final void initVerify(Certificate certificate) argument 239 if (certificate instanceof X509Certificate) { 240 Set ce = ((X509Certificate) certificate).getCriticalExtensionOIDs(); 251 boolean[] keyUsage = ((X509Certificate) certificate) [all...] |
/libcore/luni/src/test/java/tests/api/javax/net/ssl/ |
H A D | X509KeyManagerTest.java | 80 String certificate = "-----BEGIN CERTIFICATE-----\n" field in class:X509KeyManagerTest 101 ByteArrayInputStream certArray = new ByteArrayInputStream(certificate
|
H A D | HandshakeCompletedEventTest.java | 52 private String certificate = "-----BEGIN CERTIFICATE-----\n" field in class:HandshakeCompletedEventTest 122 ByteArrayInputStream bis = new ByteArrayInputStream(certificate.getBytes()); 556 * Implements basically a dummy TrustManager. It stores the certificate
|
/libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/ |
H A D | X509KeyManagerImpl.java | 24 // creating a certificate 25 String certificate = "-----BEGIN CERTIFICATE-----\n" field in class:X509KeyManagerImpl 41 ByteArrayInputStream certArray = new ByteArrayInputStream(certificate
|
/libcore/luni/src/main/java/javax/crypto/ |
H A D | Cipher.java | 713 * certificate. 719 * It the type of the certificate is X.509 and the certificate has a <i>key 725 * the certificate can not provide, the underlying implementation of this 737 * @param certificate 738 * the certificate. 740 * if the public key in the certificate can not be used to 743 public final void init(int opmode, Certificate certificate) argument 748 init(opmode, certificate, secureRandom); 753 * certificate an 786 init(int opmode, Certificate certificate, SecureRandom random) argument [all...] |
/libcore/luni/src/main/java/org/apache/harmony/security/provider/cert/ |
H A D | X509CRLImpl.java | 209 // null means that revoked certificate issuer is the same as CRL issuer 216 // certificate issuer differs from CRL issuer 230 * Searches for certificate in CRL. 232 * into account serial number and issuer of the certificate, 234 * by serial number of the specified certificate. 238 public X509CRLEntry getRevokedCertificate(X509Certificate certificate) { argument 239 if (certificate == null) { 240 throw new NullPointerException("certificate == null"); 248 BigInteger serialN = certificate.getSerialNumber(); 251 X500Principal certIssuer = certificate [all...] |
H A D | X509CertImpl.java | 67 private final Certificate certificate; field in class:X509CertImpl 72 // cache values retrieved from the certificate object, 88 // encoding of the certificate 93 * form of X.509 certificate provided via stream parameter. 94 * @param in input stream containing ASN.1 encoded form of certificate. 100 this.certificate = (Certificate) Certificate.ASN1.decode(in); 102 this.tbsCert = certificate.getTbsCertificate(); 113 public X509CertImpl(Certificate certificate) { argument 114 this.certificate = certificate; [all...] |
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
H A D | Identity2Test.java | 85 String certificate = "-----BEGIN CERTIFICATE-----\n" field in class:Identity2Test 101 ByteArrayInputStream certArray = new ByteArrayInputStream(certificate.getBytes()); 286 // Removing the same certificate a second time should fail.
|
H A D | KeyStore2Test.java | 76 // creating a certificate 77 String certificate = "-----BEGIN CERTIFICATE-----\n" field in class:KeyStore2Test 93 ByteArrayInputStream certArray = new ByteArrayInputStream(certificate.getBytes()); 269 assertEquals("the public key of the certificate from getCertificate() " 270 + "did not equal the original certificate", 276 // testing for a certificate chain 278 assertEquals("the certificate for alias2 is supposed to exist", 297 // certificate entry 300 assertEquals("certificate entry - the alias returned for this certificate wa [all...] |
H A D | KeyStore3Test.java | 49 private Certificate certificate; field in class:KeyStore3Test 74 certificate = cf.generateCertificate(certArray); 104 mockKeyStore.setKeyEntry("Alias", null, null, new Certificate[]{certificate}); 125 mockKeyStore.setKeyEntry("Alias", key, null, new Certificate[]{certificate}); 135 mockKeyStore.setKeyEntry("Alias3", key, null, new Certificate[]{certificate}); 143 mockKeyStore.setCertificateEntry(null, certificate);
|
/libcore/support/src/test/java/libcore/javax/net/ssl/ |
H A D | TestSSLContext.java | 132 * SSLContext with certificate and key as well as SSLServerSocket 198 * certificate chain from the given KeyStore and a TrustManager 232 public static void assertCertificateInKeyStore(Certificate certificate, argument 240 if (certificate.equals(keyStoreCertificate)) {
|
/libcore/luni/src/test/java/libcore/java/security/ |
H A D | KeyStoreTest.java | 65 private static final String ALIAS_CERTIFICATE = "certificate"; 157 // RI can't handle certificate in PKCS12, but BC can 338 public static void setCertificate(KeyStore ks, String alias, Certificate certificate) argument 340 ks.setCertificateEntry(alias, certificate); 1151 // certificate is null, size doesn't change,
|
/libcore/luni/src/test/java/libcore/javax/crypto/ |
H A D | CipherTest.java | 1036 Certificate certificate = certificateWithKeyUsage(keyUsage); 1037 assertCipherInitWithKeyUsage(certificate, allowEncrypt, Cipher.ENCRYPT_MODE); 1038 assertCipherInitWithKeyUsage(certificate, allowDecrypt, Cipher.DECRYPT_MODE); 1039 assertCipherInitWithKeyUsage(certificate, allowWrap, Cipher.WRAP_MODE); 1040 assertCipherInitWithKeyUsage(certificate, allowUnwrap, Cipher.UNWRAP_MODE); 1043 private void assertCipherInitWithKeyUsage(Certificate certificate, argument 1048 cipher.init(mode, certificate); 1051 cipher.init(mode, certificate); 1070 + " for " + certificate);
|
/libcore/crypto/src/main/native/ |
H A D | org_conscrypt_NativeCrypto.cpp | 5435 * Returns an array containing all the X509 certificate's bytes. 5545 * Java to perform certificate verification and handshake 5841 * Verify the X509 certificate via SSL_CTX_set_cert_verify_callback 5918 * Call back to ask for a client certificate. There are three possible exit codes: 5920 * 1 is success. x509Out and pkeyOut should point to the correct private key and certificate. 5927 /* Clear output of key and certificate in case of early exit due to error. */ 5991 X509* certificate = SSL_get_certificate(ssl); local 5994 if (certificate != NULL && privatekey != NULL) { 5995 *x509Out = certificate; 6227 * (by default disabled), the server will send a certificate whic 7232 X509* certificate = SSL_get_certificate(ssl); local [all...] |