/dalvik/libcore/security/src/main/java/org/bouncycastle/x509/extension/ |
H A D | AuthorityKeyIdentifierStructure.java | 39 X509Certificate certificate) 44 if (certificate.getVersion() != 3) 46 GeneralName genName = new GeneralName(PrincipalUtil.getIssuerX509Principal(certificate)); 48 (ASN1Sequence)new ASN1InputStream(certificate.getPublicKey().getEncoded()).readObject()); 51 info, new GeneralNames(genName), certificate.getSerialNumber()).toASN1Object(); 55 GeneralName genName = new GeneralName(PrincipalUtil.getIssuerX509Principal(certificate)); 57 byte[] ext = certificate.getExtensionValue(X509Extensions.SubjectKeyIdentifier.getId()); 64 str.getOctets(), new GeneralNames(genName), certificate.getSerialNumber()).toASN1Object(); 69 (ASN1Sequence)new ASN1InputStream(certificate.getPublicKey().getEncoded()).readObject()); 72 info, new GeneralNames(genName), certificate 38 fromCertificate( X509Certificate certificate) argument 106 AuthorityKeyIdentifierStructure( X509Certificate certificate) argument [all...] |
/dalvik/libcore/security/src/test/java/tests/security/cert/ |
H A D | PKIXBuilderParametersTest.java | 54 String certificate = "-----BEGIN CERTIFICATE-----\n" field in class:PKIXBuilderParametersTest 292 * <code>keystore</code> does not contain at least one trusted certificate 330 ByteArrayInputStream certArray = new ByteArrayInputStream(certificate 367 ByteArrayInputStream certArray = new ByteArrayInputStream(certificate 401 ByteArrayInputStream certArray = new ByteArrayInputStream(certificate 450 ByteArrayInputStream certArray = new ByteArrayInputStream(certificate
|
H A D | X509CRL2Test.java | 47 String certificate = "-----BEGIN CERTIFICATE-----\n" field in class:X509CRL2Test 74 ByteArrayInputStream certArray = new ByteArrayInputStream(certificate
|
H A D | X509CRLTest.java | 64 String certificate = "-----BEGIN CERTIFICATE-----\n" field in class:X509CRLTest 80 ByteArrayInputStream certArray = new ByteArrayInputStream(certificate 298 * getRevokedCertificate(X509Certificate certificate) method testing.
|
/dalvik/libcore/security/src/main/java/java/security/cert/ |
H A D | X509CRL.java | 40 * Abstract base class for X.509 certificate revocation lists (CRL). 177 // TODO if there is no X.509 certificate provider installed 208 * Returns the CRL entry with the specified certificate serial number. 211 * the certificate serial number to search for a CRL entry. 212 * @return the entry for the specified certificate serial number, or {@code 218 * Returns the CRL entry for the specified certificate. 220 * @param certificate 221 * the certificate to search a CRL entry for. 222 * @return the entry for the specified certificate, or {@code null} if not 225 public X509CRLEntry getRevokedCertificate(X509Certificate certificate) { argument [all...] |
H A D | X509CertSelector.java | 50 * A certificate selector ({@code CertSelector} for selecting {@code 86 * Sets the certificate that a matching certificate must be equal to. 88 * @param certificate 89 * the certificate to match, or null to not check this criteria. 91 public void setCertificate(X509Certificate certificate) { argument 92 certificateEquals = certificate; 96 * Returns the certificate that a matching certificate must be equal to. 98 * @return the certificate t 1142 match(Certificate certificate) argument [all...] |
/dalvik/libcore/security/src/main/java/java/security/ |
H A D | Identity.java | 91 * @param certificate 94 * if the certificate is not valid. 99 public void addCertificate(Certificate certificate) argument 105 PublicKey certPK = certificate.getPublicKey(); 116 certificates.add(certificate); 151 * @param certificate 154 * if the certificate is not found. 159 public void removeCertificate(Certificate certificate) argument 167 if (!certificates.contains(certificate)) { 171 certificates.removeElement(certificate); [all...] |
H A D | Signature.java | 233 * using the certificate of the identity whose signature is going to be 236 * If the given certificate is an instance of {@link X509Certificate} and 237 * has a key usage parameter that indicates, that this certificate is not to 240 * @param certificate 241 * the certificate used to verify a signature. 243 * if the publicKey in the certificate is not valid or not to be 246 public final void initVerify(Certificate certificate) argument 248 if (certificate instanceof X509Certificate) { 249 Set ce = ((X509Certificate) certificate).getCriticalExtensionOIDs(); 260 boolean[] keyUsage = ((X509Certificate) certificate) [all...] |
/dalvik/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
|
/dalvik/libcore/x-net/src/test/java/tests/api/javax/net/ssl/ |
H A D | X509KeyManagerTest.java | 85 String certificate = "-----BEGIN CERTIFICATE-----\n" field in class:X509KeyManagerTest 106 ByteArrayInputStream certArray = new ByteArrayInputStream(certificate
|
H A D | HandshakeCompletedEventTest.java | 63 String certificate = "-----BEGIN CERTIFICATE-----\n" field in class:HandshakeCompletedEventTest 180 ByteArrayInputStream bis = new ByteArrayInputStream(certificate.getBytes()); 685 * Implements basically a dummy TrustManager. It stores the certificate
|
/dalvik/libcore/crypto/src/main/java/javax/crypto/ |
H A D | Cipher.java | 712 * certificate. 718 * It the type of the certificate is X.509 and the certificate has a <i>key 724 * the certificate can not provide, the underlying implementation of this 736 * @param certificate 737 * the certificate. 739 * if the public key in the certificate can not be used to 742 public final void init(int opmode, Certificate certificate) argument 747 init(opmode, certificate, sec_rand); 752 * certificate an 785 init(int opmode, Certificate certificate, SecureRandom random) argument [all...] |
/dalvik/libcore/security/src/main/java/org/apache/harmony/security/provider/cert/ |
H A D | X509CRLImpl.java | 212 // null means that revoked certificate issuer is the same as CRL issuer 219 // certificate issuer differs from CRL issuer 233 * Searches for certificate in CRL. 235 * into account serial number and issuer of the certificate, 237 * by serial number of the specified certificate. 241 public X509CRLEntry getRevokedCertificate(X509Certificate certificate) { argument 242 if (certificate == null) { 251 BigInteger serialN = certificate.getSerialNumber(); 254 X500Principal certIssuer = certificate.getIssuerX500Principal(); 256 // certificate issue [all...] |
H A D | X509CertImpl.java | 77 private final Certificate certificate; field in class:X509CertImpl 80 // cache values retrieved from the certificate object 97 // encoding of the certificate 108 * form of X.509 certificate provided via stream parameter. 109 * @param in input stream containing ASN.1 encoded form of certificate. 115 this.certificate = (Certificate) Certificate.ASN1.decode(in); 117 this.tbsCert = certificate.getTbsCertificate(); 128 public X509CertImpl(Certificate certificate) { argument 129 this.certificate = certificate; [all...] |
/dalvik/libcore/security/src/test/java/org/apache/harmony/security/tests/java/security/ |
H A D | Identity2Test.java | 145 String certificate = "-----BEGIN CERTIFICATE-----\n" field in class:Identity2Test 161 ByteArrayInputStream certArray = new ByteArrayInputStream(certificate 411 // Removing the same certificate a second time should fail.
|
H A D | KeyStore2Test.java | 85 // creating a certificate 86 String certificate = "-----BEGIN CERTIFICATE-----\n" field in class:KeyStore2Test 102 ByteArrayInputStream certArray = new ByteArrayInputStream(certificate 303 assertTrue("the public key of the certificate from getCertificate() " 304 + "did not equal the original certificate", certRes 310 // testing for a certificate chain 312 assertTrue("the certificate for alias2 is supposed to exist", 337 // certificate entry 340 assertTrue("certificate entry - the alias returned for this " 341 + "certificate wa [all...] |
H A D | KeyStore3Test.java | 54 private Certificate certificate; field in class:KeyStore3Test 79 certificate = cf.generateCertificate(certArray); 133 mockKeyStore.setKeyEntry("Alias", null, null, new Certificate[]{certificate}); 160 mockKeyStore.setKeyEntry("Alias", key, null, new Certificate[]{certificate}); 176 mockKeyStore.setKeyEntry("Alias3", key, null, new Certificate[]{certificate}); 190 mockKeyStore.setCertificateEntry(null, certificate);
|
/dalvik/libcore/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/ |
H A D | OpenSSLServerSocketImpl.java | 52 private native void nativeinit(String privatekey, String certificate, byte[] seed); argument
|
H A D | OpenSSLSocketImpl.java | 100 private native void nativeinit(String privatekey, String certificate, byte[] seed); argument 283 * cipher suites, or initiate a new session. The certificate chain is 359 throw new SSLException("Server sends no certificate"); 371 throw new SSLException("Not trusted server certificate", e); 418 * Callback methode for the OpenSSL native certificate verification process. 422 * @return 0 if the certificate verification fails or 1 if OK 439 new SSLException("Not trusted server certificate", e));
|