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标识消息的类型,和
Transform
s可选列表;例如:
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 参考和应用指定的
Transform s。
|
List |
getTransforms()
|
String |
getURI()
返回引用
KeyInfo 信息的URI。
|
getType
isFeatureSupported
List getTransforms()
Transform
对象的一个不可修改的列表(可能为空而不
null
)。
String getURI()
KeyInfo
信息的URI。
getURI
接口
URIReference
KeyInfo
RFC 2396格式的URI(不
null
)
Data dereference(XMLCryptoContext context) throws URIReferenceException
KeyInfo
信息的
RetrievalMethod
参考和应用指定的
Transform
s。
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.