public interface CanonicalizationMethod
W3C Recommendation for XML-Signature Syntax and Processing 中定义的 XML CanonicalizationMethod 元素的表示形式。XML Schema Definition 的定义如下:
<element name="CanonicalizationMethod" type="ds:CanonicalizationMethodType"/> <complexType name="CanonicalizationMethodType" 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 类的
newCanonicalizationMethod 方法创建
CanonicalizationMethod 实例。
| 字段摘要 | |
|---|---|
static String |
EXCLUSIVE Exclusive Canonical XML(不带注释)规范化方法的算法 URI。 |
static String |
EXCLUSIVE_WITH_COMMENTS 带注释的 Exclusive Canonical XML 规范化方法的算法 URI。 |
static String |
INCLUSIVE Canonical XML(不带注释)的规范化方法的算法 URI。 |
static String |
INCLUSIVE_WITH_COMMENTS 带注释的 Canonical XML 的规范化方法的算法 URI。 |
| 从接口 javax.xml.crypto.dsig.Transform 继承的字段 |
|---|
BASE64, ENVELOPED, XPATH, XPATH2, XSLT |
| 方法摘要 | |
|---|---|
AlgorithmParameterSpec |
getParameterSpec() 返回与此 CanonicalizationMethod 关联的特定于算法的输入参数。 |
| 从接口 javax.xml.crypto.dsig.Transform 继承的方法 |
|---|
transform, transform |
| 从接口 javax.xml.crypto.XMLStructure 继承的方法 |
|---|
isFeatureSupported |
| 从接口 javax.xml.crypto.AlgorithmMethod 继承的方法 |
|---|
getAlgorithm |
| 字段详细信息 |
|---|
static final String INCLUSIVE
static final String INCLUSIVE_WITH_COMMENTS
static final String EXCLUSIVE
static final String EXCLUSIVE_WITH_COMMENTS
| 方法详细信息 |
|---|
AlgorithmParameterSpec getParameterSpec()
CanonicalizationMethod 关联的特定于算法的输入参数。
可将所返回的参数强制转换为 C14NMethodParameterSpec 对象。
AlgorithmMethod 中的
getParameterSpec
Transform 中的
getParameterSpec
null)