/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/main/java/org/apache/harmony/security/provider/cert/ |
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...] |
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...] |
/dalvik/libcore/security/src/main/java/java/security/ |
H A D | Identity.java | 106 * @param certificate 109 * if the certificate is not valid. 115 public void addCertificate(Certificate certificate) argument 121 PublicKey certPK = certificate.getPublicKey(); 132 certificates.add(certificate); 167 * @param certificate 170 * if the certificate is not found. 176 public void removeCertificate(Certificate certificate) argument 184 if (!certificates.contains(certificate)) { 188 certificates.removeElement(certificate); [all...] |
H A D | Signature.java | 254 * using the certificate of the identity whose signature is going to be 257 * If the given certificate is an instance of {@link X509Certificate} and 258 * has a key usage parameter that indicates, that this certificate is not to 262 * @param certificate 263 * the certificate used to verify a signature. 265 * if the publicKey in the certificate is not valid or not to be 269 public final void initVerify(Certificate certificate) argument 271 if (certificate instanceof X509Certificate) { 272 Set ce = ((X509Certificate) certificate).getCriticalExtensionOIDs(); 283 boolean[] keyUsage = ((X509Certificate) certificate) [all...] |
/dalvik/libcore/security/src/test/java/tests/targets/security/cert/ |
H A D | CertPathBuilderTestPKIX.java | 81 Certificate certificate = certificates.get(0); 83 assertEquals("unexpected certificate type", "X.509", certificate 86 X509Certificate x509Certificate = (X509Certificate) certificate;
|
H A D | CertificateFactoryTest.java | 66 Certificate certificate = certificateFactory.generateCertificate( 68 assertNotNull(certificate);
|
H A D | CertificateTest.java | 44 * Following certificate chain was taken from https://www.verisign.com and 45 * uses MD2withRSA for the root certificate. This chain stops validating 50 * A selfsigned certificate using MD2withRSA 106 * A certificate signed by selfSignedCertMD2 206 * A certificate signed by signedCert1Chain1 323 * Following certificate chain was taken from https://www.thawte.com and 324 * uses MD5withRSA for the root certificate. This chain stops validating 329 * A selfsigned certificate using MD5withRSA 392 * A certificate signed by selfSignedCertMD5 491 * A certificate signe [all...] |
/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). 190 // TODO if there is no X.509 certificate provider installed 223 * Returns the CRL entry with the specified certificate serial number. 226 * the certificate serial number to search for a CRL entry. 227 * @return the entry for the specified certificate serial number, or {@code 234 * Returns the CRL entry for the specified certificate. 236 * @param certificate 237 * the certificate to search a CRL entry for. 238 * @return the entry for the specified certificate, or {@code null} if not 242 public X509CRLEntry getRevokedCertificate(X509Certificate certificate) { argument [all...] |
H A D | X509CertSelector.java | 50 * A certificate selector ({@code CertSelector} for selecting {@code 90 * Sets the certificate that a matching certificate must be equal to. 92 * @param certificate 93 * the certificate to match, or null to not check this criteria. 96 public void setCertificate(X509Certificate certificate) { argument 97 certificateEquals = certificate; 101 * Returns the certificate that a matching certificate must be equal to. 103 * @return the certificate t 1220 match(Certificate certificate) argument [all...] |
/dalvik/libcore/security/src/test/java/org/apache/harmony/security/tests/java/security/ |
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);
|
H A D | UnresolvedPermissionTest.java | 255 Certificate[] certificate = new java.security.cert.Certificate[] { 301 "action3", certificate); 304 assertTrue(Arrays.equals(certificate, up3.getUnresolvedCerts()));
|
H A D | Identity2Test.java | 144 String certificate = "-----BEGIN CERTIFICATE-----\n" field in class:Identity2Test 160 ByteArrayInputStream certArray = new ByteArrayInputStream(certificate 410 // 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...] |
/dalvik/libcore/security/src/test/java/tests/targets/security/ |
H A D | KeyStoreTest.java | 147 Certificate certificate = null; 149 certificate = certificateFactory 158 generator = KeyPairGenerator.getInstance(certificate.getPublicKey() 167 .getPrivate(), new Certificate[] {certificate});
|
/dalvik/libcore/security/src/test/java/tests/security/cert/ |
H A D | X509CRL2Test.java | 47 String certificate = "-----BEGIN CERTIFICATE-----\n" field in class:X509CRL2Test 74 ByteArrayInputStream certArray = new ByteArrayInputStream(certificate
|
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 | 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/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/crypto/src/main/java/javax/crypto/ |
H A D | Cipher.java | 752 * certificate. 758 * It the type of the certificate is X.509 and the certificate has a <i>key 764 * the certificate can not provide, the underlying implementation of this 776 * @param certificate 777 * the certificate. 779 * if the public key in the certificate can not be used to 783 public final void init(int opmode, Certificate certificate) argument 788 init(opmode, certificate, sec_rand); 793 * certificate an 827 init(int opmode, Certificate certificate, SecureRandom random) argument [all...] |
/dalvik/libcore/x-net/src/test/java/tests/api/javax/net/ssl/ |
H A D | HandshakeCompletedEventTest.java | 63 String certificate = "-----BEGIN CERTIFICATE-----\n" field in class:HandshakeCompletedEventTest 180 ByteArrayInputStream bis = new ByteArrayInputStream(certificate.getBytes()); 662 * Implements basically a dummy TrustManager. It stores the certificate
|
H A D | X509KeyManagerTest.java | 85 String certificate = "-----BEGIN CERTIFICATE-----\n" field in class:X509KeyManagerTest 106 ByteArrayInputStream certArray = new ByteArrayInputStream(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 | 97 private native void nativeinit(String privatekey, String certificate, byte[] seed); argument 280 * cipher suites, or initiate a new session. The certificate chain is 348 throw new SSLException("Server sends no certificate"); 360 throw new SSLException("Not trusted server certificate", e); 400 * Callback methode for the OpenSSL native certificate verification process. 404 * @return 0 if the certificate verification fails or 1 if OK 421 new SSLException("Not trusted server certificate", e));
|