public abstract class KeyManagerFactorySpi extends Object
KeyManagerFactory类。 
       该类中的所有抽象方法必须由希望提供特定密钥管理器工厂的实现的每个加密服务提供商来实现。
KeyManagerFactory , KeyManager 
       | Constructor and Description | 
|---|
KeyManagerFactorySpi()  |  
          
| Modifier and Type | Method and Description | 
|---|---|
protected abstract KeyManager[] |  
           engineGetKeyManagers() 
            
              返回每种类型的密钥材料的一个密钥管理器。 
               |  
          
protected abstract void |  
           engineInit(KeyStore ks, char[] password) 
            
              使用关键材料来源初始化该工厂。 
               |  
          
protected abstract void |  
           engineInit(ManagerFactoryParameters spec) 
            
              使用关键材料来源初始化该工厂。 
               |  
          
protected abstract void engineInit(KeyStore ks, char[] password) throws KeyStoreException, NoSuchAlgorithmException, UnrecoverableKeyException
ks - 密钥库或null 
           password - 恢复密钥的密码 
           KeyStoreException - 如果此操作失败 
           NoSuchAlgorithmException - 如果指定的算法不能从指定的提供者获得。 
           UnrecoverableKeyException - 如果密钥无法恢复 
           KeyManagerFactory.init(KeyStore, char[]) 
           protected abstract void engineInit(ManagerFactoryParameters spec) throws InvalidAlgorithmParameterException
 在某些情况下,供应商可能需要除密钥库和密码之外的初始化参数。 预期该特定提供商的用户将通过提供商定义的相应ManagerFactoryParameters的实现。 然后,提供者可以在ManagerFactoryParameters实现中调用指定的方法来获取所需的信息。 
spec - 提供者特定参数规范的实现 
           InvalidAlgorithmParameterException - 如果参数有问题 
           KeyManagerFactory.init(ManagerFactoryParameters spec) 
           protected abstract KeyManager[] engineGetKeyManagers()
IllegalStateException - 如果KeyManagerFactorySpi未初始化 
            Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.