public interface RetrievalMethod extends URIReference, XMLStructure
RetrievalMethod元在
W3C Recommendation for XML-Signature Syntax and Processing定义。一个
RetrievalMethod对象是用来传达一个参考
KeyInfo信息存储在另一个位置。XML架构定义的定义是:
<元名称=“检索”type=“ds:retrievalmethodtype” />< complexType名称=“retrievalmethodtype”>
<序>
<元名称=“转换”type=“ds:transformstype”minoccurs=“0” />< /序列>
<属性名=“uri”type=“anyuri” />
<属性名=“型”type=“anyuri”=“可选” />< /名称>
序>一
RetrievalMethod实例可以通过调用一个类的
KeyInfoFactory
newRetrievalMethod方法创建的,并通过它的URI标识的消息的位置,一个可选的类型的URI标识消息的类型,和
Transforms可选列表;例如:
keyinfofactory厂= keyinfofactory getInstance(DOM);资料factory.newretrievalmethod RM =(“# keyvalue-1”,keyvalue.dsa_type,集合。singletonlist(变换。Base64));
| Modifier and Type | Method and Description |
|---|---|
Data |
dereference(XMLCryptoContext context)
引用
KeyInfo信息的
RetrievalMethod参考和应用指定的
Transforms。
|
List |
getTransforms()
|
String |
getURI()
返回引用
KeyInfo信息的URI。
|
getTypeisFeatureSupportedList getTransforms()
Transform对象的一个不可修改的列表(可能为空而不
null)。
String getURI()
KeyInfo信息的URI。
getURI 接口
URIReference
KeyInfo RFC 2396格式的URI(不
null)
Data dereference(XMLCryptoContext context) throws URIReferenceException
KeyInfo信息的
RetrievalMethod参考和应用指定的
Transforms。
context -
XMLCryptoContext可能包含的URI引用其他有用的信息。语境的
baseURI和
dereferencer参数(如果指定)是用来解决和引用这
RetrievalMethod
KeyInfo信息的
RetrievalMethod引用的原始内容
Data对象。这是对方的责任,将返回的数据到一个合适的
KeyInfo对象。
null
context
NullPointerException
URIReferenceException -如果有错误而废弃
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.