public interface SignatureMethod extends XMLStructure, AlgorithmMethod
SignatureMethod
元在
W3C Recommendation for XML-Signature Syntax and Processing定义。XML架构定义的定义是:
<元名称=“signaturemethod”type=“ds:signaturemethodtype” />< complexType名称=“signaturemethodtype混合=“真实”> <序> <元名称=“hmacoutputlength minoccurs="“0”型”=“DS:HMACOutputLengthType”/"> <命名空间=“# #任何“minoccurs="“0”=“maxOccurs无界”/"> <!——(0、无界)元素(1,1)命名空间-->< /序列> <属性名=“算法”type=“anyuri”使用=“需要的” />< /名称> 命名空间=“#> 元名称=“hmacoutputlength> 序>一
SignatureMethod
实例可以通过调用类方法创建的
XMLSignatureFactory
newSignatureMethod
。
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(蛋白# 1)签名算法的URI。
|
Modifier and Type | Method and Description |
---|---|
AlgorithmParameterSpec |
getParameterSpec()
返回特定算法的输入参数的
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.