- 所有超级接口:
-
AlgorithmMethod,XMLStructure
表示XML
DigestMethod元素的XML W3C XML签名语法和处理推荐标准中定义的内容。 XML模式定义如下:
<element name="DigestMethod" type="ds:DigestMethodType"/>
<complexType name="DigestMethodType" mixed="true">
<sequence>
<any namespace="##any" minOccurs="0" maxOccurs="unbounded"/>
<!-- (0,unbounded) elements from (1,1) namespace -->
</sequence>
<attribute name="Algorithm" type="anyURI" use="required"/>
</complexType>
可通过调用 XMLSignatureFactory 类的 newDigestMethod 方法创建 DigestMethod 实例。
此类中定义的摘要方法算法URI在 W3C XML签名语法和处理推荐标准 和 RFC 9231: 附加XML安全统一资源标识符(URI) 中指定。
- 自1.6版本起:
- 参见:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringRIPEMD-160 摘要方法算法URI。static final StringSHA1 摘要方法算法URI。static final StringSHA224 摘要方法算法URI。static final StringSHA256 摘要方法算法URI。static final StringSHA3-224 摘要方法算法URI。static final StringSHA3-256 摘要方法算法URI。static final StringSHA3-384 摘要方法算法URI。static final StringSHA3-512 摘要方法算法URI。static final StringSHA384 摘要方法算法URI。static final StringSHA512 摘要方法算法URI。 -
Method Summary
Modifier and TypeMethodDescription返回与此DigestMethod关联的特定于算法的输入参数。Methods declared in interface javax.xml.crypto.AlgorithmMethod
getAlgorithmMethods declared in interface javax.xml.crypto.XMLStructure
isFeatureSupported
-
Field Details
-
SHA1
SHA1 摘要方法算法URI。- 参见:
-
SHA224
SHA224 摘要方法算法URI。- 自11版本起:
- 参见:
-
SHA256
SHA256 摘要方法算法URI。- 参见:
-
SHA384
SHA384 摘要方法算法URI。- 自11版本起:
- 参见:
-
SHA512
SHA512 摘要方法算法URI。- 参见:
-
RIPEMD160
RIPEMD-160 摘要方法算法URI。- 参见:
-
SHA3_224
SHA3-224 摘要方法算法URI。- 自11版本起:
- 参见:
-
SHA3_256
SHA3-256 摘要方法算法URI。- 自11版本起:
- 参见:
-
SHA3_384
SHA3-384 摘要方法算法URI。- 自11版本起:
- 参见:
-
SHA3_512
SHA3-512 摘要方法算法URI。- 自11版本起:
- 参见:
-
-
Method Details
-
getParameterSpec
AlgorithmParameterSpec getParameterSpec()返回与此DigestMethod关联的特定于算法的输入参数。返回的参数可以强制转换为
DigestMethodParameterSpec对象。- 指定者:
-
getParameterSpec在接口AlgorithmMethod - 返回:
-
算法特定参数(如果未指定可能为
null)
-