/libcore/luni/src/test/java/tests/security/cert/ |
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...] |
CertificateFactorySpiTest.java | 35 import java.security.cert.Certificate; 68 List<Certificate> list = null; 78 Certificate cc = certFactorySpi.engineGenerateCertificate(bais); 85 Collection<? extends Certificate> col = certFactorySpi.engineGenerateCertificates(bais); 148 Certificate cert = certFactorySpi 151 Collection<? extends Certificate> col = certFactorySpi 170 List<Certificate> list = null; 218 Certificate cert = certFactorySpi 221 Collection<? extends Certificate> col = certFactorySpi 240 List<Certificate> list = null [all...] |
/cts/tests/tests/net/src/android/net/http/cts/ |
X509TrustManagerExtensionsTest.java | 22 import java.security.cert.Certificate; 51 for (Certificate cert : tm.getAcceptedIssuers()) {
|
/external/apache-harmony/security/src/test/support/common/java/org/apache/harmony/security/tests/support/ |
CertificateStub.java | 27 import java.security.Certificate; 33 * Stub for interface Certificate, necessary for testing 36 public class CertificateStub implements Certificate { 53 * @see java.security.Certificate#decode(java.io.InputStream) 64 * @see java.security.Certificate#encode(java.io.OutputStream) 73 * @see java.security.Certificate#getFormat() 81 * @see java.security.Certificate#getGuarantor() 89 * @see java.security.Certificate#getPrincipal() 96 * @see java.security.Certificate#getPublicKey() 105 * @see java.security.Certificate#toString(boolean [all...] |
/external/apache-harmony/security/src/test/support/common/java/org/apache/harmony/security/tests/support/cert/ |
MyCertificate.java | 29 import java.security.cert.Certificate; 34 * Stub class for <code>java.security.cert.Certificate</code> tests 36 public class MyCertificate extends Certificate { 82 return "[My test Certificate, type: " + getType() + "]";
|
/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/java/security/ |
CodeSource.java | 44 public CodeSource(URL url, java.security.cert.Certificate certs[]) { } 50 public final java.security.cert.Certificate[] getCertificates() { return null; }
|
UnresolvedPermission.java | 48 java.security.cert.Certificate certs[]) { super(""); } 60 public java.security.cert.Certificate[] getUnresolvedCerts() { return null; }
|
/libcore/ojluni/src/main/java/javax/net/ssl/ |
SSLSession.java | 48 * generally identified by X.509 certificate chains. 220 * Note: This method can be used only when using certificate-based 221 * cipher suites; using it with non-certificate-based cipher suites, 225 * with the peer's own certificate first followed by any 226 * certificate authorities. 231 public java.security.cert.Certificate [] getPeerCertificates() 235 * Returns the certificate(s) that were sent to the peer during 238 * Note: This method is useful only when using certificate-based 243 * "best" certificate chain available, and transmits that to 245 * which certificate chain was actually used [all...] |
/libcore/ojluni/src/main/java/sun/security/provider/certpath/ |
UntrustedChecker.java | 28 import java.security.cert.Certificate; 39 * specified certificate is distrusted. 72 public void check(Certificate cert, 80 debug.println("UntrustedChecker: untrusted certificate " + 85 "Untrusted certificate: " + currCert.getSubjectX500Principal());
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
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/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)
|
MyCertificate.java | 31 import java.security.cert.Certificate; 38 * Stub class for <code>java.security.cert.Certificate</code> tests 40 public class MyCertificate extends Certificate implements X509Extension { 89 return "[My test Certificate, type: " + getType() + "]"; 114 public Certificate.CertificateRep getCertificateRep() 120 public class MyCertificateRep extends Certificate.CertificateRep {
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
KeyManagementTest.java | 39 import java.security.cert.Certificate; 89 final Certificate cert = getCertificate(FAKE_RSA_1.caCertificate); 113 final Certificate cert = getCertificate(FAKE_RSA_1.caCertificate); 116 assertTrue(mDevicePolicyManager.installKeyPair(getWho(), privKey, new Certificate[] {cert}, 118 assertTrue(mDevicePolicyManager.installKeyPair(getWho(), privKey, new Certificate[] {cert}, 140 final Collection<Certificate> certs = loadCertificatesFromAsset("user-cert-chain.crt"); 141 final Certificate[] certChain = certs.toArray(new Certificate[certs.size()]); 158 // Verify the certificate chain is correct 172 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))
|
/external/nist-sip/java/gov/nist/javax/sip/ |
ClientTransactionExt.java | 3 import java.security.cert.Certificate;
|
/libcore/ojluni/src/main/java/java/security/cert/ |
Certificate.java | 40 * An identity certificate is a binding of a principal to a public key which 46 * certificates, such as X.509 and PGP, share general certificate 51 * subclassing the Certificate class, even though they contain different 61 public abstract class Certificate implements java.io.Serializable { 65 // the certificate type 69 * Creates a certificate of the specified type. 71 * @param type the standard name of the certificate type. 75 * for information about standard certificate types. 77 protected Certificate(String type) { 82 * Returns the type of this certificate [all...] |
CertPath.java | 43 * <code>Certificate</code>s, and one or more supported encodings. Because the 50 * <code>Certificate</code>s in the certification path. For each 51 * certificate <code>cert</code> in a certification path <code>certPath</code>, 55 * The list of <code>Certificate</code>s is an ordered <code>List</code> of 56 * zero or more <code>Certificate</code>s. This <code>List</code> and all 57 * of the <code>Certificate</code>s contained in it must be immutable. 79 * certificate and ending with a certificate issued by the trust anchor. That 80 * is, the issuer of one certificate is the subject of the following one. The 81 * certificate representing the {@link TrustAnchor TrustAnchor} should not b [all...] |
/external/apache-harmony/x-net/src/test/api/java/org/apache/harmony/xnet/tests/javax/net/ssl/ |
SSLSessionBindingEventTest.java | 21 import java.security.cert.Certificate; 86 public Certificate[] getLocalCertificates() { 115 public Certificate[] getPeerCertificates()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
SecureCacheResponseTest.java | 23 import java.security.cert.Certificate; 49 public List<Certificate> getLocalCertificateChain() { 67 public List<Certificate> getServerCertificateChain() throws SSLPeerUnverifiedException {
|
/libcore/luni/src/test/java/libcore/java/security/cert/ |
SubjectAlternativeNameTest.java | 21 import java.security.cert.Certificate; 53 Certificate root = new TestKeyStore.Builder() 66 private X509Certificate bouncycastleToJava(Certificate certificate) throws Exception { 67 byte[] encoded = certificate.getEncoded();
|
/libcore/ojluni/src/main/java/javax/security/cert/ |
Certificate.java | 37 * An identity certificate is a guarantee by a principal that 43 * certificates, such as X.509 and PGP, share general certificate 48 * subclassing the Certificate class, even though they contain different 55 * use the standard Java SE certificate classes located in 63 public abstract class Certificate { 66 * Compares this certificate for equality with the specified 68 * <code>instanceof</code> <code>Certificate</code>, then 70 * encoded form of this certificate. 72 * @param other the object to test for equality with this certificate. 79 if (!(other instanceof Certificate)) [all...] |
/libcore/support/src/test/java/libcore/javax/net/ssl/ |
FakeSSLSession.java | 21 import java.security.cert.Certificate; 51 public Certificate[] getLocalCertificates() { 67 public Certificate[] getPeerCertificates() {
|
/prebuilts/go/darwin-x86/src/crypto/tls/ |
conn_test.go | 64 Certificates: []Certificate{ 66 Certificate: [][]byte{fromHex(certExampleCom)}, 69 Certificate: [][]byte{fromHex(certWildcardExampleCom)}, 72 Certificate: [][]byte{fromHex(certFooExampleCom)}, 75 Certificate: [][]byte{fromHex(certDoubleWildcardExampleCom)}, 82 pointerToIndex := func(c *Certificate) int { 91 certificateForName := func(name string) *Certificate { 96 t.Errorf("unable to get certificate for name '%s': %s", name, err) 104 t.Errorf("example.com returned certificate %d, not 0", n) 107 t.Errorf("bar.example.com returned certificate %d, not 1", n [all...] |
/prebuilts/go/linux-x86/src/crypto/tls/ |
conn_test.go | 64 Certificates: []Certificate{ 66 Certificate: [][]byte{fromHex(certExampleCom)}, 69 Certificate: [][]byte{fromHex(certWildcardExampleCom)}, 72 Certificate: [][]byte{fromHex(certFooExampleCom)}, 75 Certificate: [][]byte{fromHex(certDoubleWildcardExampleCom)}, 82 pointerToIndex := func(c *Certificate) int { 91 certificateForName := func(name string) *Certificate { 96 t.Errorf("unable to get certificate for name '%s': %s", name, err) 104 t.Errorf("example.com returned certificate %d, not 0", n) 107 t.Errorf("bar.example.com returned certificate %d, not 1", n [all...] |