public interface RetrievalMethod extends URIReference, XMLStructure
RetrievalMethod元素的表示 。
RetrievalMethod对象用于传递存储在另一位置的KeyInfo引用。
XML模式定义定义为:
<element name="RetrievalMethod" type="ds:RetrievalMethodType"/>
<complexType name="RetrievalMethodType">
<sequence>
<element name="Transforms" type="ds:TransformsType" minOccurs="0"/>
</sequence>
<attribute name="URI" type="anyURI"/>
<attribute name="Type" type="anyURI" use="optional"/>
</complexType>
可以通过调用KeyInfoFactory类的newRetrievalMethod方法之一来创建一个RetrievalMethod实例,并将其标识KeyInfo的位置的URI,一个标识KeyInfo类型的可选类型的URI以及一个可选的Transform的列表;
例如:
KeyInfoFactory factory = KeyInfoFactory.getInstance("DOM");
RetrievalMethod rm = factory.newRetrievalMethod
("#KeyValue-1", KeyValue.DSA_TYPE, Collections.singletonList(Transform.BASE64));
| Modifier and Type | Method and Description |
|---|---|
Data |
dereference(XMLCryptoContext context)
取消引用
KeyInfo this引用信息
RetrievalMethod和应用指定的
Transform秒。
|
List |
getTransforms()
返回这RetrievalMethod的 Transform的RetrievalMethod 。
|
String |
getURI()
返回引用的
KeyInfo信息的URI。
|
getTypeisFeatureSupportedList getTransforms()
Transform的RetrievalMethod 。
Transform对象列表(可能为空,但不能为
null )。
String getURI()
KeyInfo信息的URI。
getURI在界面
URIReference
KeyInfo信息的URI(从不
null )
Data dereference(XMLCryptoContext context) throws URIReferenceException
KeyInfo this引用信息
RetrievalMethod和应用指定的
Transform秒。
context - 一个XMLCryptoContext ,可能包含用于取消引用URI的其他有用信息。
上下文的baseURI和dereferencer参数(如果指定)用于解析和取消引用此RetrievalMethod
Data对象表示的原始内容KeyInfo由该参考信息RetrievalMethod 。
调用者有责任将返回的数据转换为适当的KeyInfo对象。
NullPointerException - 如果
context是
null
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.