| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 package org.chromium.chrome.testshell; | 5 package org.chromium.chrome.testshell; |
| 6 | 6 |
| 7 import android.content.Context; | 7 import android.content.Context; |
| 8 | 8 |
| 9 import org.chromium.chrome.browser.PKCS11AuthenticationManager; | 9 import org.chromium.chrome.browser.PKCS11AuthenticationManager; |
| 10 import org.chromium.net.AndroidPrivateKey; |
| 10 | 11 |
| 11 import java.security.PrivateKey; | |
| 12 import java.security.cert.X509Certificate; | 12 import java.security.cert.X509Certificate; |
| 13 | 13 |
| 14 /** | 14 /** |
| 15 * Chromium TestShell stub implementation of PKCS11AuthenticationManager. | 15 * Chromium TestShell stub implementation of PKCS11AuthenticationManager. |
| 16 */ | 16 */ |
| 17 public class TestShellPKCS11AuthenticationManager implements PKCS11Authenticatio
nManager { | 17 public class TestShellPKCS11AuthenticationManager implements PKCS11Authenticatio
nManager { |
| 18 @Override | 18 @Override |
| 19 public boolean isPKCS11AuthEnabled() { | 19 public boolean isPKCS11AuthEnabled() { |
| 20 return false; | 20 return false; |
| 21 } | 21 } |
| 22 | 22 |
| 23 @Override | 23 @Override |
| 24 public String getClientCertificateAlias(String hostName, int port) { | 24 public String getClientCertificateAlias(String hostName, int port) { |
| 25 return null; | 25 return null; |
| 26 } | 26 } |
| 27 | 27 |
| 28 @Override | 28 @Override |
| 29 public void initialize(Context context) { | 29 public void initialize(Context context) { |
| 30 } | 30 } |
| 31 | 31 |
| 32 | 32 |
| 33 @Override | 33 @Override |
| 34 public X509Certificate[] getCertificateChain(String alias) { | 34 public X509Certificate[] getCertificateChain(String alias) { |
| 35 return null; | 35 return null; |
| 36 } | 36 } |
| 37 | 37 |
| 38 @Override | 38 @Override |
| 39 public PrivateKey getPrivateKey(String alias) { | 39 public AndroidPrivateKey getPrivateKey(String alias) { |
| 40 return null; | 40 return null; |
| 41 } | 41 } |
| 42 } | 42 } |
| OLD | NEW |