• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
3 // found in the LICENSE file.
4 
5 package org.chromium.chrome.shell;
6 
7 import android.content.Context;
8 
9 import org.chromium.chrome.browser.PKCS11AuthenticationManager;
10 import org.chromium.net.AndroidPrivateKey;
11 
12 import java.security.cert.X509Certificate;
13 
14 /**
15  * ChromeShell stub implementation of PKCS11AuthenticationManager.
16  */
17 public class ChromeShellPKCS11AuthenticationManager implements PKCS11AuthenticationManager {
18     @Override
isPKCS11AuthEnabled()19     public boolean isPKCS11AuthEnabled() {
20         return false;
21     }
22 
23     @Override
getClientCertificateAlias(String hostName, int port)24     public String getClientCertificateAlias(String hostName, int port) {
25         return null;
26     }
27 
28     @Override
initialize(Context context)29     public void initialize(Context context) {
30     }
31 
32 
33     @Override
getCertificateChain(String alias)34     public X509Certificate[] getCertificateChain(String alias) {
35         return null;
36     }
37 
38     @Override
getPrivateKey(String alias)39     public AndroidPrivateKey getPrivateKey(String alias) {
40         return null;
41     }
42 }
43