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