|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
public interface Transform
W3C Recommendation for XML-Signature Syntax and Processing 中定義的 XML Transform 元素的表示形式。XML Schema Definition 的定義如下:
<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>調用
XMLSignatureFactory 類別的 newTransform 方法可以創建 Transform 實例。
XMLSignatureFactory.newTransform(String, TransformParameterSpec)| 欄位摘要 | |
|---|---|
static String |
BASE64
Base64 轉換演算法 URI。 |
static String |
ENVELOPED
Enveloped Signature 轉換演算法 URI。 |
static String |
XPATH
XPath 轉換演算法 URI。 |
static String |
XPATH2
XPath Filter 2 轉換演算法 URI。 |
static String |
XSLT
XSLT 轉換演算法 URI。 |
| 方法摘要 | |
|---|---|
AlgorithmParameterSpec |
getParameterSpec()
返回與此 Transform 關聯的特定於演算法的輸入參數。 |
Data |
transform(Data data,
XMLCryptoContext context)
使用底層轉換演算法對指定資料進行轉換。 |
Data |
transform(Data data,
XMLCryptoContext context,
OutputStream os)
使用底層轉換演算法對指定資料進行轉換。 |
| 從介面 javax.xml.crypto.XMLStructure 繼承的方法 |
|---|
isFeatureSupported |
| 從介面 javax.xml.crypto.AlgorithmMethod 繼承的方法 |
|---|
getAlgorithm |
| 欄位詳細資訊 |
|---|
static final String BASE64
static final String ENVELOPED
static final String XPATH
static final String XPATH2
static final String XSLT
| 方法詳細資訊 |
|---|
AlgorithmParameterSpec getParameterSpec()
Transform 關聯的特定於演算法的輸入參數。
可將返回的參數強制轉換為 TransformParameterSpec 物件。
AlgorithmMethod 中的 getParameterSpecnull)
Data transform(Data data,
XMLCryptoContext context)
throws TransformException
data - 要轉換的資料context - 套件含其他上下文的 XMLCryptoContext(如果不適用,則該參數為 null)
NullPointerException - 如果 data 為 null
TransformException - 如果執行轉換時發生錯誤
Data transform(Data data,
XMLCryptoContext context,
OutputStream os)
throws TransformException
OctetStreamData,則此方法將返回 null,並且將位元組寫入指定的 OutputStream。否則,將忽略 OutputStream,並且該方法的行為將類似於調用 transform(Data, XMLCryptoContext)。
data - 要轉換的資料context - 套件含其他上下文的 XMLCryptoContext(如果不適用,則該參數為 null)os - 應寫入已轉換資料的 OutputStream
OutputStream 參數,則返回 null)
NullPointerException - 如果 data 或 os 為 null
TransformException - 如果執行轉換時出現錯誤
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。