public interface SignatureMethod extends XMLStructure, AlgorithmMethod
SignatureMethod
元素的表示 。
XML模式定义定义为:
<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)
Modifier and Type | Field and Description |
---|---|
static String |
DSA_SHA1
DSAwithSHA1 (DSS)签名方法算法URI。
|
static String |
HMAC_SHA1
HMAC-SHA1 MAC签名方法算法URI
|
static String |
RSA_SHA1
RSAwithSHA1 (PKCS#1)签名方法算法URI。
|
Modifier and Type | Method and Description |
---|---|
AlgorithmParameterSpec |
getParameterSpec()
返回此SignatureMethod的算法特定输入
SignatureMethod 。
|
isFeatureSupported
getAlgorithm
static final String DSA_SHA1
static final String RSA_SHA1
static final String HMAC_SHA1
AlgorithmParameterSpec getParameterSpec()
SignatureMethod
。
返回的参数可以类型转换为SignatureMethodParameterSpec
对象。
getParameterSpec
在界面
AlgorithmMethod
SignatureMethod
(可以是
null
如果未指定)
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.