|
JavaTM 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 Platform Standard Ed. 6 |
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。