public interface DigestMethod extends XMLStructure, AlgorithmMethod
DigestMethod元在
W3C Recommendation for XML-Signature Syntax and Processing定义的XML架构定义的定义是:
<元名称=“digestmethod”type=“ds:digestmethodtype” />< complexType名称=“digestmethodtype混合=“真实”>
<序>
<命名空间=“# #任何“minoccurs="“0”=“maxOccurs无界”/">
<!——(0、无界)元素(1,1)命名空间-->< /序列>
<属性名=“算法”type=“anyuri”使用=“需要的” />< /名称>
命名空间=“#>
序>一
DigestMethod实例可以通过调用类方法创建的
XMLSignatureFactory
newDigestMethod。
XMLSignatureFactory.newDigestMethod(String, DigestMethodParameterSpec)
| Modifier and Type | Field and Description |
|---|---|
static String |
RIPEMD160
的
RIPEMD-160消化方法URI。
|
static String |
SHA1
的
SHA1消化方法URI。
|
static String |
SHA256
的
SHA256消化方法URI。
|
static String |
SHA512
的
SHA512消化方法URI。
|
| Modifier and Type | Method and Description |
|---|---|
AlgorithmParameterSpec |
getParameterSpec()
返回特定算法的输入参数与此相关的
DigestMethod。
|
isFeatureSupportedgetAlgorithmstatic final String SHA1
static final String SHA256
static final String SHA512
static final String RIPEMD160
AlgorithmParameterSpec getParameterSpec()
DigestMethod。
返回的参数可以转换到DigestMethodParameterSpec对象。
getParameterSpec 接口
AlgorithmMethod
null如果不指定)
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.