public interface DigestMethod
W3C Recommendation for XML-Signature Syntax and Processing 中定义的 XML DigestMethod 元素的表示形式。XML Schema Definition 的定义如下:
<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 实例。
XMLSignatureFactory.newDigestMethod(String, DigestMethodParameterSpec)
| 字段摘要 | |
|---|---|
static String |
RIPEMD160 RIPEMD-160 摘要方法的算法 URI。 |
static String |
SHA1 SHA1 摘要方法的算法 URI。 |
static String |
SHA256 SHA256 摘要方法的算法 URI。 |
static String |
SHA512 SHA512 摘要方法的算法 URI。 |
| 方法摘要 | |
|---|---|
AlgorithmParameterSpec |
getParameterSpec() 返回与此 DigestMethod 关联的特定于算法的输入参数。 |
| 从接口 javax.xml.crypto.XMLStructure 继承的方法 |
|---|
isFeatureSupported |
| 从接口 javax.xml.crypto.AlgorithmMethod 继承的方法 |
|---|
getAlgorithm |
| 字段详细信息 |
|---|
static final String SHA1
static final String SHA256
static final String SHA512
static final String RIPEMD160
| 方法详细信息 |
|---|
AlgorithmParameterSpec getParameterSpec()
DigestMethod 关联的特定于算法的输入参数。
可将返回的参数强制转换为 DigestMethodParameterSpec 对象。
AlgorithmMethod 中的
getParameterSpec
null)