|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
public interface SignatureMethod
W3C Recommendation for XML-Signature Syntax and Processing 中定義的 XML SignatureMethod 元素的表示形式。XML Schema Definition 的定義如下:
<element name="SignatureMethod" type="ds:SignatureMethodType"/> <complexType name="SignatureMethodType" mixed="true"> <sequence> <element name="HMACOutputLength" minOccurs="0" type="ds:HMACOutputLengthType"/> <any namespace="##any" minOccurs="0" maxOccurs="unbounded"/> <!-- (0,unbounded) elements from (1,1) namespace --> </sequence> <attribute name="Algorithm" type="anyURI" use="required"/> </complexType>調用
XMLSignatureFactory 類別的 newSignatureMethod 方法可以創建 SignatureMethod 實例。
XMLSignatureFactory.newSignatureMethod(String, SignatureMethodParameterSpec)| 欄位摘要 | |
|---|---|
static String |
DSA_SHA1
DSAwithSHA1 (DSS) 簽章方法的演算法 URI。 |
static String |
HMAC_SHA1
HMAC-SHA1 MAC 簽章方法的演算法 URI。 |
static String |
RSA_SHA1
RSAwithSHA1 (PKCS #1) 簽章方法的演算法 URI。 |
| 方法摘要 | |
|---|---|
AlgorithmParameterSpec |
getParameterSpec()
返回此 SignatureMethod 的特定於演算法的輸入參數。 |
| 從介面 javax.xml.crypto.XMLStructure 繼承的方法 |
|---|
isFeatureSupported |
| 從介面 javax.xml.crypto.AlgorithmMethod 繼承的方法 |
|---|
getAlgorithm |
| 欄位詳細資訊 |
|---|
static final String DSA_SHA1
static final String RSA_SHA1
static final String HMAC_SHA1
| 方法詳細資訊 |
|---|
AlgorithmParameterSpec getParameterSpec()
SignatureMethod 的特定於演算法的輸入參數。
可將返回的參數強制轉換為 SignatureMethodParameterSpec 物件。
AlgorithmMethod 中的 getParameterSpecSignatureMethod 的特定於演算法的輸入參數(如果未指定,則返回 null)
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。