|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjava.security.AlgorithmParametersSpi
public abstract class AlgorithmParametersSpi
此类为 AlgorithmParameters 类定义服务提供者接口 (SPI),AlgorithmParameters 类用于管理算法参数。
每个希望为特定算法提供参数管理的密码服务提供者都必须实现此类中的所有抽象方法。
AlgorithmParameters,
AlgorithmParameterSpec,
DSAParameterSpec| 构造方法摘要 | |
|---|---|
AlgorithmParametersSpi()
|
|
| 方法摘要 | ||
|---|---|---|
protected abstract byte[] |
engineGetEncoded()
返回基本编码格式的参数。 |
|
protected abstract byte[] |
engineGetEncoded(String format)
返回以指定格式编码的参数。 |
|
protected abstract
|
engineGetParameterSpec(Class<T> paramSpec)
返回此参数对象的(透明)规范。 |
|
protected abstract void |
engineInit(AlgorithmParameterSpec paramSpec)
使用在 paramSpec 中指定的参数初始化此参数对象。 |
|
protected abstract void |
engineInit(byte[] params)
根据参数的基本解码格式导入指定的参数并对其解码。 |
|
protected abstract void |
engineInit(byte[] params,
String format)
根据指定的解码格式从 params 导入参数并对其解码。 |
|
protected abstract String |
engineToString()
返回描述参数的格式化字符串。 |
|
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public AlgorithmParametersSpi()
| 方法详细信息 |
|---|
protected abstract void engineInit(AlgorithmParameterSpec paramSpec)
throws InvalidParameterSpecException
paramSpec 中指定的参数初始化此参数对象。
paramSpec - 参数规范。
InvalidParameterSpecException - 如果给定参数规范不适用于初始化此参数对象。
protected abstract void engineInit(byte[] params)
throws IOException
params - 编码的参数。
IOException - 当解码发生错误时
protected abstract void engineInit(byte[] params,
String format)
throws IOException
params 导入参数并对其解码。如果 format 为 null,则使用参数的基本解码格式。如果这些参数的 ASN.1 规范存在,则基本解码格式即为 ASN.1。
params - 编码的参数。format - 解码格式的名称。
IOException - 当解码发生错误时
protected abstract <T extends AlgorithmParameterSpec> T engineGetParameterSpec(Class<T> paramSpec)
throws InvalidParameterSpecException
paramSpec 标识应该在其中返回参数的规范类。例如,该类可以为 DSAParameterSpec.class,指示应该在 DSAParameterSpec 类的实例中返回参数。
paramSpec - 应该在其中返回参数的规范类。
InvalidParameterSpecException - 如果请求的参数规范不适用于初始化此参数对象。
protected abstract byte[] engineGetEncoded()
throws IOException
IOException - 当编码发生错误时。
protected abstract byte[] engineGetEncoded(String format)
throws IOException
format 为 null,则使用参数的基本编码格式。如果这些参数的 ASN.1 规范存在,则基本编码格式即为 ASN.1。
format - 编码格式的名称。
IOException - 当编码发生错误时。protected abstract String engineToString()
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
版权所有 2008 Sun Microsystems, Inc. 保留所有权利。请遵守GNU General Public License, version 2 only。