/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cert/ |
X509CertificateHolder.java | 15 import org.bouncycastle.asn1.x509.Certificate; 25 * Holding class for an X.509 Certificate structure. 30 private Certificate x509Certificate; 33 private static Certificate parseBytes(byte[] certEncoding) 38 return Certificate.getInstance(ASN1Primitive.fromByteArray(certEncoding)); 53 * @param certEncoding BER/DER encoding of the certificate. 65 * @param x509Certificate an ASN.1 Certificate structure. 67 public X509CertificateHolder(Certificate x509Certificate) 87 * Return whether or not the holder's certificate contains extensions. 114 * Return the extensions block associated with this certificate if there is one [all...] |
/external/mockwebserver/src/main/java/com/google/mockwebserver/ |
RecordedRequest.java | 22 import java.security.cert.Certificate; 46 private final Certificate[] sslLocalCertificates; 47 private final Certificate[] sslPeerCertificates; 66 Certificate[] peerCertificates = null; 216 public Certificate[] getSslLocalCertificates() { 234 public Certificate[] getSslPeerCertificates() {
|
/libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/ |
mySSLSession.java | 4 import java.security.cert.Certificate; 28 private Certificate[] certs = null; 45 public mySSLSession(Certificate[] xc) throws CertificateEncodingException, CertificateException { 49 for (Certificate cert : xc) { 77 public Certificate[] getLocalCertificates() { 89 public Certificate[] getPeerCertificates() throws SSLPeerUnverifiedException {
|
/external/apache-harmony/x-net/src/test/api/java/org/apache/harmony/xnet/tests/javax/net/ssl/ |
HttpsURLConnectionTest.java | 23 import java.security.cert.Certificate; 123 public Certificate[] getLocalCertificates() { 131 public Certificate[] getServerCertificates()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
SSLSessionBindingEventTest.java | 21 import java.security.cert.Certificate; 126 public Certificate[] getLocalCertificates() { 155 public Certificate[] getPeerCertificates()
|
HttpsURLConnectionTest.java | 24 import java.security.cert.Certificate; 85 Certificate[] cert = con.getLocalCertificates(); 173 Certificate[] cert = con.getServerCertificates(); 264 public Certificate[] getLocalCertificates() { 269 Certificate cert = cf.generateCertificate(bis); 270 return new Certificate[] { cert }; 279 public Certificate[] getServerCertificates() throws SSLPeerUnverifiedException { 284 Certificate cert = cf.generateCertificate(bis); 285 return new Certificate[] { cert }; 287 throw new SSLPeerUnverifiedException("No server's end-entity certificate"); [all...] |
/libcore/luni/src/test/java/tests/security/cert/ |
CertificateCertificateRepTest.java | 10 import java.security.cert.Certificate; 28 * <code>Certificate.CertificateRep(String type, byte[] data)</code> 74 Certificate obj = (Certificate) rep1.readResolve();
|
CRLTest.java | 28 import java.security.cert.Certificate; 88 // that are abstract in <code>Certificate</code> 115 public boolean isRevoked(Certificate cert) {
|
CertStoreSpiTest.java | 36 import java.security.cert.Certificate; 89 public boolean match (Certificate crl) {
|
PKIXCertPathCheckerTest.java | 28 import java.security.cert.Certificate; 89 public void check(Certificate cert,
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/cert/ |
MyCertificateFactorySpi.java | 30 import java.security.cert.Certificate; 66 public Certificate engineGenerateCertificate(InputStream inStream) 124 public CertPath engineGenerateCertPath(List<? extends Certificate> certificates) {
|
/external/apache-harmony/security/src/test/support/common/java/org/apache/harmony/security/tests/support/ |
MyKeyStore.java | 34 import java.security.cert.Certificate; 69 public Certificate[] engineGetCertificateChain(String alias) { 71 return (Certificate[]) Chain.get(alias); 76 public Certificate engineGetCertificate(String alias) { 78 return (Certificate) Cert.get(alias); 91 Certificate[] chain) throws KeyStoreException { 102 public void engineSetKeyEntry(String alias, byte[] key, Certificate[] chain) 123 public void engineSetCertificateEntry(String alias, Certificate cert) 172 public String engineGetCertificateAlias(Certificate cert) {
|
TestCertUtils.java | 58 * Returns new instance of test certificate each time the method is called. 60 * @return test certificate 62 public static Certificate getCert() { 74 public static Certificate[] getCertChain() { 75 Certificate[] chain = { new TestCertificate(), new TestCertificate(), 94 * The second arguments shows which number will have the first Certificate 95 * in the CertPath. The second certificate will have (startID+1) number 99 * @param startID - specifies the starting ID which the first certificate will have 103 Certificate[] certs = new Certificate[howMany] [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/x509/ |
CertificateFactory.java | 25 import org.bouncycastle.asn1.x509.Certificate; 33 * At the moment this will deal with "-----BEGIN CERTIFICATE-----" to "-----END CERTIFICATE-----" 42 private static final PEMUtil PEM_CERT_PARSER = new PEMUtil("CERTIFICATE"); 53 private java.security.cert.Certificate readDERCertificate( 72 Certificate.getInstance(seq)); 75 private java.security.cert.Certificate getCertificate() 87 Certificate.getInstance(obj)); 95 private java.security.cert.Certificate readPEMCertificate( 104 Certificate.getInstance(seq)) [all...] |
/libcore/ojluni/src/main/java/java/security/ |
KeyStoreSpi.java | 33 import java.security.cert.Certificate; 78 * Returns the certificate chain associated with the given alias. 79 * The certificate chain must have been associated with the alias 86 * @return the certificate chain (ordered with the user's certificate first 87 * and the root certificate authority last), or null if the given alias 88 * does not exist or does not contain a certificate chain 90 public abstract Certificate[] engineGetCertificateChain(String alias); 93 * Returns the certificate associated with the given alias. 99 * then the trusted certificate contained in that entry is returned [all...] |
Timestamp.java | 29 import java.security.cert.Certificate; 57 * The TSA's certificate path. 72 * @param signerCertPath is the TSA's certificate path. It must not be null. 93 * Returns the certificate path for the Timestamping Authority. 95 * @return The TSA's certificate path. 104 * and the TSA's certificate path. 118 * their timestamp's and their signer's certificate paths are equal. 141 * its signer's certificate. 147 List<? extends Certificate> certs = signerCertPath.getCertificates();
|
/libcore/ojluni/src/main/java/javax/net/ssl/ |
HttpsURLConnection.java | 80 * Returns the certificate(s) that were sent to the server during 83 * Note: This method is useful only when using certificate-based 88 * "best" certificate chain available, and transmits that to 90 * which certificate chain was actually sent. 93 * with the client's own certificate first followed by any 94 * certificate authorities. If no certificates were sent, 100 public abstract java.security.cert.Certificate [] getLocalCertificates(); 103 * Returns the server's certificate chain which was established 106 * Note: This method can be used only when using certificate-based 107 * cipher suites; using it with non-certificate-based cipher suites [all...] |
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
MyKeyStore.java | 35 import java.security.cert.Certificate; 71 public Certificate[] engineGetCertificateChain(String alias) { 73 return (Certificate[]) Chain.get(alias); 78 public Certificate engineGetCertificate(String alias) { 80 return (Certificate) Cert.get(alias); 93 Certificate[] chain) throws KeyStoreException { 104 public void engineSetKeyEntry(String alias, byte[] key, Certificate[] chain) 125 public void engineSetCertificateEntry(String alias, Certificate cert) 174 public String engineGetCertificateAlias(Certificate cert) {
|
/libcore/ojluni/src/main/java/sun/security/provider/certpath/ |
IndexedCollectionCertStore.java | 50 * CollectionCertStore. Certificate subjects and CRL issuers 68 * <code>Collection</code> from which <code>Certificate</code>s and 71 * <code>Certificate</code> or <code>CRL</code>, that object will be 87 * detected and certificate or CRL retrieval can be retried. The fact that 88 * <code>Certificate</code>s and <code>CRL</code>s must be thread-safe is also 109 private Set<Certificate> otherCertificates; 150 } else if (obj instanceof Certificate) { 152 otherCertificates = new HashSet<Certificate>(); 154 otherCertificates.add((Certificate)obj); 165 otherCertificates = Collections.<Certificate>emptySet() [all...] |
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ |
SecureClassLoader2Test.java | 27 import java.security.cert.Certificate; 44 (Certificate[]) null));
|
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/cert/ |
CertStoreSpiTest.java | 31 import java.security.cert.Certificate; 99 public boolean match(Certificate crl) {
|
/external/apache-harmony/security/src/test/api/java/tests/api/java/security/ |
DomainCombinerTest.java | 32 import java.security.cert.Certificate; 71 new CodeSource(null, (Certificate[]) null), new Permissions()) };
|
/external/okhttp/samples/guide/src/main/java/com/squareup/okhttp/recipes/ |
CheckHandshake.java | 24 import java.security.cert.Certificate; 34 for (Certificate certificate : chain.connection().getHandshake().peerCertificates()) { 35 String pin = CertificatePinner.pin(certificate); 37 throw new IOException("Blacklisted peer certificate: " + pin);
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/utils/ |
FingerprintUtils.java | 22 import java.security.cert.Certificate; 28 * Returns the {@link Certificate} fingerprint as returned by <code>keytool</code>. 30 * @param certificate 33 public static String getFingerprint(Certificate cert, String hashAlgorithm) {
|
/cts/hostsidetests/devicepolicy/app/CertInstaller/src/com/android/cts/certinstaller/ |
CertInstallerReceiver.java | 32 import java.security.cert.Certificate; 36 * Delegated certificate installer app that responds to specific intents and executes various DPM 37 * certificate manipulation APIs. The following APIs are exercised: 128 Certificate certificate = CertificateFactory.getInstance("X.509") local 138 sendResult(context, dpm.installKeyPair(null, privatekey, certificate, alias), 160 Certificate certificateToMatch = readCertificate(toMatch); 162 Certificate cert = readCertificate(certBuffer); 170 private static Certificate readCertificate(byte[] certBuffer) throws CertificateException {
|