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 -密钥存储或空
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.