public abstract class AlgorithmParametersSpi extends Object
AlgorithmParameters
类,它是用来管理算法参数。
在这个类中的所有抽象方法都必须实现由每个密码服务提供者,谁希望提供一个特定的算法的参数管理。
AlgorithmParameters
,
AlgorithmParameterSpec
,
DSAParameterSpec
Constructor and Description |
---|
AlgorithmParametersSpi() |
Modifier and Type | Method and Description |
---|---|
protected abstract byte[] |
engineGetEncoded()
返回在其主要编码格式中的参数。
|
protected abstract byte[] |
engineGetEncoded(String format)
返回指定格式编码的参数。
|
protected abstract <T extends AlgorithmParameterSpec> |
engineGetParameterSpec(类<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()
返回一个描述参数的格式化字符串。
|
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
是空的,主要的解码格式的参数使用。主要的解码格式是ASN。1,如果ASN。这些参数规格1存在。
params
-编码参数。
format
-解码格式的名称。
IOException
-解码错误
protected abstract <T extends AlgorithmParameterSpec> T engineGetParameterSpec(类<T> paramSpec) throws InvalidParameterSpecException
paramSpec
标识规范类中的参数应该归还。它可以,例如,被
DSAParameterSpec.class
,表明参数应在
DSAParameterSpec
类的实例返回。
T
-要返回的参数类型
paramSpec
-规范类中的参数应该归还。
InvalidParameterSpecException
如果请求的参数规格不合适的参数对象。
protected abstract byte[] engineGetEncoded() throws IOException
IOException
-编码错误。
protected abstract byte[] engineGetEncoded(String format) throws IOException
format
是空的,主要的编码格式参数的应用。主要的编码格式是ASN。1,如果ASN。这些参数规格1存在。
format
-编码格式的名称。
IOException
-编码错误。
protected abstract String engineToString()
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.