|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
public interface RetrievalMethod
「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));
KeyInfoFactory.newRetrievalMethod(String),
KeyInfoFactory.newRetrievalMethod(String, String, List)| メソッドの概要 | |
|---|---|
Data |
dereference(XMLCryptoContext context)
この RetrievalMethod によって参照される KeyInfo 情報を間接参照し、指定した Transform を適用します。 |
List |
getTransforms()
この RetrievalMethod の Transform の変更不可能なリストを返します。 |
String |
getURI()
参照された KeyInfo 情報の URI を返します。 |
| インタフェース javax.xml.crypto.URIReference から継承されたメソッド |
|---|
getType |
| インタフェース javax.xml.crypto.XMLStructure から継承されたメソッド |
|---|
isFeatureSupported |
| メソッドの詳細 |
|---|
List getTransforms()
RetrievalMethod の Transform の変更不可能なリストを返します。
Transform オブジェクトの変更不可能なリスト。空の場合もあるが null になることはないString getURI()
KeyInfo 情報の URI を返します。
URIReference 内の getURIKeyInfo 情報の URI。null になることはない
Data dereference(XMLCryptoContext context)
throws URIReferenceException
RetrievalMethod によって参照される KeyInfo 情報を間接参照し、指定した Transform を適用します。
context - URI の間接参照に役立つ追加情報が含まれている場合のある XMLCryptoContext。コンテキストの baseURI および dereferencer パラメータ (指定されている場合) は、この RetrievalMethod の解決と間接参照に使用される
RetrievalMethod によって参照される KeyInfo 情報の raw コンテンツを表す Data オブジェクト。呼び出し側で、返されたデータを適切な KeyInfo オブジェクトに変換する必要がある
NullPointerException - context が null の場合
URIReferenceException - 間接参照の間にエラーが発生した場合
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright 2009 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。