- すべてのスーパー・インタフェース:
AlgorithmMethod
,XMLStructure
- 既知のすべてのサブインタフェース:
CanonicalizationMethod
- 既知のすべての実装クラス:
TransformService
public interface Transform extends XMLStructure, AlgorithmMethod
「W3C Recommendation for XML-Signature Syntax and Processing」で定義されているXML
Transform
要素の表現。 XMLスキーマ定義は、次のように定義されます。
<element name="Transform" type="ds:TransformType"/> <complexType name="TransformType" mixed="true"> <choice minOccurs="0" maxOccurs="unbounded"> <any namespace="##other" processContents="lax"/> <!-- (1,1) elements from (0,unbounded) namespaces --> <element name="XPath" type="string"/> </choice> <attribute name="Algorithm" type="anyURI" use="required"/> </complexType>
Transform
インスタンスは、XMLSignatureFactory
クラスのnewTransform
メソッドを呼び出すことで作成できます。- 導入されたバージョン:
- 1.6
- 関連項目:
-
フィールドのサマリー
-
メソッドのサマリー
修飾子と型メソッド説明このTransform
に関連付けられた、アルゴリズム固有の入力パラメータを返します。transform
(Data data, XMLCryptoContext context) 指定したデータをベースとなる変換アルゴリズムを使用して変換します。transform
(Data data, XMLCryptoContext context, OutputStream os) 指定したデータをベースとなる変換アルゴリズムを使用して変換します。インタフェースjavax.xml.crypto.AlgorithmMethodで宣言されたメソッド
getAlgorithm
インタフェースjavax.xml.crypto.XMLStructureで宣言されたメソッド
isFeatureSupported
-
フィールド詳細
-
BASE64
-
ENVELOPED
-
XPATH
-
XPATH2
-
XSLT
-
-
メソッドの詳細
-
getParameterSpec
AlgorithmParameterSpec getParameterSpec()このTransform
に関連付けられた、アルゴリズム固有の入力パラメータを返します。返されたパラメータを
TransformParameterSpec
オブジェクトに型キャストできます。- 定義:
getParameterSpec
、インタフェースAlgorithmMethod
- 戻り値:
- アルゴリズム固有の入力パラメータ。指定されていない場合は
null
になることもある
-
transform
指定したデータをベースとなる変換アルゴリズムを使用して変換します。- パラメータ:
data
- 変換対象のデータcontext
- 追加のコンテキストを格納するXMLCryptoContext
。該当しない場合はnull
も可- 戻り値:
- 変換されたデータ
- 例外:
NullPointerException
-data
がnull
である場合TransformException
- 変換の実行中にエラーが発生した場合
-
transform
指定したデータをベースとなる変換アルゴリズムを使用して変換します。 この変換の出力がOctetStreamData
の場合このメソッドはnull
を返し、バイトが指定したOutputStream
に書き込まれます。 そうでない場合OutputStream
は無視され、メソッドはtransform(Data, XMLCryptoContext)
が呼び出されたかのように動作します。- パラメータ:
data
- 変換対象のデータcontext
- 追加のコンテキストを格納するXMLCryptoContext
。該当しない場合はnull
も可os
- 変換されたデータの書込みに使用されるOutputStream
- 戻り値:
- 変換されたデータ。データが
OutputStream
パラメータに書き込まれた場合はnull
- 例外:
NullPointerException
-data
またはos
がnull
の場合TransformException
- 変換の実行中にエラーが発生した場合
-