©
本文档使用
php.cn手册 发布
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
1 |
|
W3C Recommendation for XML-Signature Syntax and Processing 中定义的 XML Reference
元素的表示形式。XML Schema 的定义如下:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
|
调用 XMLSignatureFactory
类的一个 newReference
方法可以创建 Reference
实例,例如:
1 2 3 4 |
|
XMLSignatureFactory.newReference(String, DigestMethod)
,
XMLSignatureFactory.newReference(String, DigestMethod, List, String, String)
方法摘要 | |
---|---|
byte[] |
getCalculatedDigestValue()
返回执行验证操作后计算的此 Reference 的摘要值。 |
Data |
getDereferencedData()
如果已启用引用缓存,则返回被取消引用的数据。 |
InputStream |
getDigestInputStream()
如果已启用引用缓存,则返回预整理的输入流。 |
DigestMethod |
getDigestMethod()
返回此 Reference 的摘要方法。 |
byte[] |
getDigestValue()
返回此 Reference 的摘要值。 |
String |
getId()
返回此 Reference 的可选 Id 属性,该属性允许从其他地方引用此 Reference。 |
List |
getTransforms()
返回一个 不可修改的列表 ,由包含在此 Reference 中的 Transform 组成。 |
boolean |
validate(XMLValidateContext validateContext)
验证此引用。 |
从接口 javax.xml.crypto.URIReference 继承的方法 |
---|
getType, getURI |
从接口 javax.xml.crypto.XMLStructure 继承的方法 |
---|
isFeatureSupported |
方法详细信息 |
---|
1 |
|
不可修改的列表
,由包含在此 Reference
中的 Transform
组成。
Transform
列表(可以为空,但不能为 null
)1 |
|
Reference
的摘要方法。
1 |
|
Reference
的可选 Id
属性,该属性允许从其他地方引用此 Reference。
Id
属性(如果未指定,则返回 null
)1 |
|
Reference
的摘要值。
null
。每次调用此方法都将返回一个新的副本,以防止随后被修改。1 |
|
Reference
的摘要值。如果验证引用失败,则此方法对于调试很有用。
null
。每次调用此方法都将返回一个新的副本,以防止随后被修改。1 2 |
|
此方法只在首次调用时验证引用。在进行后续调用时,它将返回一个缓存的结果。
validateContext
- 验证的上下文
true
;否则返回 false
NullPointerException
- 如果 validateContext
为 null
XMLSignatureException
- 如果在验证引用时发生不可预料的异常1 |
|
null
1 |
|
null
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
版权所有 2004 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。