/libcore/ojluni/src/main/java/java/security/cert/ |
PKIXCertPathChecker.java | 38 * extension of each certificate in a certification path. 45 * methods will be called, in turn, for each certificate processed by a PKIX 132 * Returns an immutable {@code Set} of X.509 certificate extensions 141 * All X.509 certificate extensions that a {@code PKIXCertPathChecker} 152 * Performs the check(s) on the specified certificate using its internal 158 * @param cert the {@code Certificate} to be checked 161 * @exception CertPathValidatorException if the specified certificate does 164 public abstract void check(Certificate cert, 175 public void check(Certificate cert) throws CertPathValidatorException {
|
CertStoreSpi.java | 71 * Returns a {@code Collection} of {@code Certificate}s that 72 * match the specified selector. If no {@code Certificate}s 77 * {@code Certificate}s that match the selector. For instance, 80 * contain the {@code Certificate}s it is looking for. 89 * {@code Certificate}s should be returned. Specify {@code null} 90 * to return all {@code Certificate}s (if supported). 91 * @return A {@code Collection} of {@code Certificate}s that 95 public abstract Collection<? extends Certificate> engineGetCertificates 114 * and/or the certificate to be checked are especially useful.
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
MyKeyStoreSpi.java | 35 import java.security.cert.Certificate; 53 public Certificate[] engineGetCertificateChain(String alias) { 57 public Certificate engineGetCertificate(String alias) { 69 Certificate[] chain) throws KeyStoreException { 74 public void engineSetKeyEntry(String alias, byte[] key, Certificate[] chain) 80 public void engineSetCertificateEntry(String alias, Certificate cert) 124 public String engineGetCertificateAlias(Certificate cert) { 146 class MyCertificate extends Certificate {
|
TestKeyStoreSpi.java | 17 import java.security.cert.Certificate; 31 public static final Certificate CERT = new MyCertificate("certtype", 33 public static final Certificate[] CERTCHAIN = new Certificate[] { 78 public Certificate engineGetCertificate(String alias) { 79 return (Certificate) aliases.get(alias); 83 public String engineGetCertificateAlias(Certificate cert) { 98 public Certificate[] engineGetCertificateChain(String alias) { 99 return (Certificate[]) aliases.get(alias); 128 Certificate c = (Certificate) aliases.get(alias) [all...] |
CertificateStub.java | 28 import java.security.Certificate; 34 * Stub for interface Certificate, necessary for testing 37 public class CertificateStub implements Certificate { 53 * @see java.security.Certificate#decode(java.io.InputStream) 63 * @see java.security.Certificate#encode(java.io.OutputStream) 72 * @see java.security.Certificate#getFormat() 80 * @see java.security.Certificate#getGuarantor() 88 * @see java.security.Certificate#getPrincipal() 95 * @see java.security.Certificate#getPublicKey() 103 * @see java.security.Certificate#toString(boolean [all...] |
/libcore/luni/src/test/java/tests/security/cert/ |
CertificateTest.java | 37 import java.security.cert.Certificate; 49 * Tests for <code>Certificate</code> fields and methods 60 * Test for <code>Certificate(String type)</code> method<br> 63 Certificate c1 = new MyCertificate("TEST_TYPE", testEncoding); 74 * Assertion: returns hash of the <code>Certificate</code> instance 78 Certificate c1 = new MyCertificate("TEST_TYPE", testEncoding); 79 Certificate c2 = new MyCertificate("TEST_TYPE", testEncoding); 93 Certificate c1 = new MyCertificate("TEST_TYPE", testEncoding); 94 Certificate c2 = new MyCertificate("TEST_TYPE", testEncoding); 105 Certificate c1 = new MyCertificate("TEST_TYPE", testEncoding) [all...] |
CertificateFactory3Test.java | 35 import java.security.cert.Certificate; 84 * Assertion: returns Certificate 89 Certificate[] certs = new Certificate[3]; 100 * Assertion: returns Collection which consists of 1 Certificate 105 Certificate cert = certFs[0] 109 Collection<? extends Certificate> col = null; 112 Iterator<? extends Certificate> it = col.iterator(); 114 assertEquals("Incorrect Certificate in Collection", cert, it.next()); 120 * Assertion: returns CertPath with 1 Certificate [all...] |
/bootable/recovery/ |
verifier.h | 40 struct Certificate { 46 Certificate(int hash_len_, 68 int verify_file(const unsigned char* addr, size_t length, const std::vector<Certificate>& keys, 71 bool load_keys(const char* filename, std::vector<Certificate>& certs);
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
KeyStorePrivateKeyEntryTest.java | 26 import java.security.cert.Certificate; 36 String certificateData = "-----BEGIN CERTIFICATE-----\n" 50 + "-----END CERTIFICATE-----\n"; 62 Certificate certificate = cf.generateCertificate(certArray); local 63 assertTrue(certificate instanceof X509Certificate); 65 String algorithm = certificate.getPublicKey().getAlgorithm(); 71 // If all the certificate in the chain is X509Certificate, 74 privateKey, new Certificate[] { certificate }); [all...] |
KeyStore3Test.java | 37 import java.security.cert.Certificate; 49 private Certificate certificate; field in class:KeyStore3Test 78 mockKeyStore.setKeyEntry("Alias", null, null, new Certificate[]{certificate}); 93 new Certificate[0]); 99 mockKeyStore.setKeyEntry("Alias", key, null, new Certificate[]{certificate}); 108 new Certificate[0]); 109 mockKeyStore.setKeyEntry("Alias3", key, null, new Certificate[]{certificate}) [all...] |
KSPrivateKeyEntryTest.java | 27 import java.security.cert.Certificate; 46 private Certificate [] testChain; 50 testChain = new Certificate[5]; 61 * Test for <code>PrivateKeyEntry(PrivateKey privateKey, Certificate[] chain)</code> 66 Certificate[] certs = new MyCertificate[1];//new Certificate[1]; 76 * Test for <code>PrivateKeyEntry(PrivateKey privateKey, Certificate[] chain)</code> 82 Certificate[] chain = null; 90 chain = new Certificate[0]; 97 * Test for <code>PrivateKeyEntry(PrivateKey privateKey, Certificate[] chain)</code [all...] |
/libcore/ojluni/src/main/java/java/security/ |
Certificate.java | 34 * An identity certificate is a guarantee by a principal that 42 * share general certificate functionality (the need to encode and 47 * implementation of PGP certificates can both utilize the Certificate 53 * semantics of its own. In particular, a Certificate object does not 56 * the certificate and satisfy itself of its validity. 59 * @deprecated A new certificate handling package is created in the Java platform. 60 * This Certificate interface is entirely deprecated and 63 * @see java.security.cert.Certificate 66 public interface Certificate { 69 * Returns the guarantor of the certificate, that is, the principa [all...] |
Identity.java | 99 Vector<Certificate> certificates; 189 certificates = new Vector<Certificate>(); 225 * Adds a certificate for this identity. If the identity has a public 226 * key, the public key in the certificate must be the same, and if 228 * public key is set to be that specified in the certificate. 232 * as its argument to see if it's ok to add a certificate. 234 * @param certificate the certificate to be added. 236 * @exception KeyManagementException if the certificate is not valid, 237 * if the public key in the certificate being added conflicts wit [all...] |
CodeSource.java | 53 public CodeSource(URL url, java.security.cert.Certificate certs[]) { 67 public final java.security.cert.Certificate[] getCertificates() { return null; }
|
UnresolvedPermission.java | 50 java.security.cert.Certificate certs[]) { super(""); } 62 public java.security.cert.Certificate[] getUnresolvedCerts() { return null; }
|
/external/google-tv-pairing-protocol/java/src/com/google/polo/pairing/ |
PoloUtil.java | 22 import java.security.cert.Certificate; 33 * Returns the peer {@link Certificate} for an {@link SSLSession}. 35 * @throws PoloException if the peer certificate could not be obtained 37 * @return the {@link Certificate} of the peer 39 public static Certificate getPeerCert(SSLSession session) 42 // Peer certificate 43 Certificate[] certs = session.getPeerCertificates(); 45 throw new PoloException("No peer certificate."); 54 * Return the local {@link Certificate} for an {@link SSLSession}. 56 * @throws PoloException if the local certificate could not be obtaine [all...] |
/frameworks/base/core/java/android/security/net/config/ |
TrustedCertificateStoreAdapter.java | 20 import java.security.cert.Certificate; 41 return anchor.certificate; 55 return anchor.certificate; 78 public Certificate getCertificate(String alias) { 83 public Certificate getCertificate(String alias, boolean includeDeletedSystem) { 113 public String getCertificateAlias(Certificate c) { 118 public String getCertificateAlias(Certificate c, boolean includeDeletedSystem) {
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/ |
PKIXCertStoreSelector.java | 7 import java.security.cert.Certificate; 18 public class PKIXCertStoreSelector<T extends Certificate> 43 public PKIXCertStoreSelector<? extends Certificate> build() 56 public boolean match(Certificate cert) 66 public static Collection<? extends Certificate> getCertificates(final PKIXCertStoreSelector selector, CertStore certStore) 114 public boolean match(Certificate certificate) 116 return (selector == null) ? (certificate != null) : selector.match(certificate);
|
/libcore/luni/src/test/java/tests/targets/security/cert/ |
CertPathBuilderTestPKIX.java | 24 import java.security.cert.Certificate; 54 List<Certificate> certList = new ArrayList<Certificate>(); 55 for (Certificate certificate : pke.getCertificateChain()) { 56 certList.add(certificate); 70 List<? extends Certificate> certificates = path.getCertificates(); 76 Certificate endEntityCert = certificates.get(0); 77 assertEquals("Certificate must be of X.509 type", "X.509", endEntityCert.getType());
|
/cts/tests/tests/net/src/android/net/http/cts/ |
X509TrustManagerExtensionsTest.java | 22 import java.security.cert.Certificate; 51 for (Certificate cert : tm.getAcceptedIssuers()) {
|
/external/okhttp/samples/guide/src/main/java/com/squareup/okhttp/recipes/ |
CertificatePinning.java | 23 import java.security.cert.Certificate; 47 for (Certificate certificate : response.handshake().peerCertificates()) { 48 System.out.println(CertificatePinner.pin(certificate));
|
/libcore/ojluni/src/main/java/javax/net/ssl/ |
SSLSession.java | 47 * generally identified by X.509 certificate chains. 219 * Note: This method can be used only when using certificate-based 220 * cipher suites; using it with non-certificate-based cipher suites, 224 * with the peer's own certificate first followed by any 225 * certificate authorities. 230 public java.security.cert.Certificate [] getPeerCertificates() 234 * Returns the certificate(s) that were sent to the peer during 237 * Note: This method is useful only when using certificate-based 242 * "best" certificate chain available, and transmits that to 244 * which certificate chain was actually used [all...] |
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/cert/ |
MyCertStoreSpi.java | 32 import java.security.cert.Certificate; 51 public Collection<Certificate> engineGetCertificates(CertSelector selector)
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
KeyManagementTest.java | 39 import java.security.cert.Certificate; 84 final Certificate cert = getCertificate(FAKE_RSA_1.caCertificate); 108 final Certificate cert = getCertificate(FAKE_RSA_1.caCertificate); 111 assertTrue(mDevicePolicyManager.installKeyPair(getWho(), privKey, new Certificate[] {cert}, 113 assertTrue(mDevicePolicyManager.installKeyPair(getWho(), privKey, new Certificate[] {cert}, 135 final Collection<Certificate> certs = loadCertificatesFromAsset("user-cert-chain.crt"); 136 final Certificate[] certChain = certs.toArray(new Certificate[certs.size()]); 153 // Verify the certificate chain is correct 167 final Certificate cert = getCertificate(FAKE_RSA_1.caCertificate) [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/ |
CertStoreCollectionSpi.java | 10 import java.security.cert.Certificate; 47 if (obj instanceof Certificate) 59 if ((obj instanceof Certificate) && selector.match((Certificate)obj))
|