モジュール java.xml.crypto

インタフェースRetrievalMethod

すべてのスーパー・インタフェース:
URIReference, XMLStructure

public interface RetrievalMethod extends URIReference, XMLStructure
W3C Recommendation for XML-Signature Syntax and Processing」で定義されているXML 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>
 
RetrievalMethodインスタンスは、KeyInfoFactoryクラスのnewRetrievalMethodメソッドの1つを呼び出し、KeyInfoの位置を識別するURI、オプションのKeyInfoの型を識別する型URI、およびオプションのTransformのリストを渡すことによって作成されます。たとえば:
   KeyInfoFactory factory = KeyInfoFactory.getInstance("DOM");
   RetrievalMethod rm = factory.newRetrievalMethod
      ("#KeyValue-1", KeyValue.DSA_TYPE, Collections.singletonList(Transform.BASE64));
 
導入されたバージョン:
1.6
関連項目: