©
本文档使用
php.cn手册 发布
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
1 |
|
W3C Recommendation for XML-Signature Syntax and Processing 中定义的 XML KeyValue
元素的表示形式。KeyValue
对象包含一个在验证签名时很有用的公钥。XML Schema Definition 的定义如下:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
|
KeyInfoFactory
类的 newKeyValue
方法,并向其传递表示公钥值的 PublicKey
,可以创建 KeyValue
实例。下面是一个示例,该示例根据 KeyStore
中存储的 Certificate
的 DSAPublicKey
创建了一个 KeyValue
:
1 2 3 4 |
|
DSAPublicKey
和 RSAPublicKey
对象的形式返回 DSAKeyValue
和 RSAKeyValue
元素。注意,并非模式中的所有字段都可以作为这些类型的参数进行访问。
KeyInfoFactory.newKeyValue(PublicKey)
字段摘要 | |
---|---|
static String |
DSA_TYPE
标识 DSA KeyValue KeyInfo 类型的 URI:http://www.w3.org/2000/09/xmldsig#DSAKeyValue。 |
static String |
RSA_TYPE
标识 RSA KeyValue KeyInfo 类型的 URI:http://www.w3.org/2000/09/xmldsig#RSAKeyValue。 |
方法摘要 | |
---|---|
PublicKey |
getPublicKey()
返回此 KeyValue 的公钥。 |
从接口 javax.xml.crypto.XMLStructure 继承的方法 |
---|
isFeatureSupported |
字段详细信息 |
---|
1 |
|
RetrievalMethod
类的 type
参数值,以描述远程 DSAKeyValue
结构。
1 |
|
RetrievalMethod
类的 type
参数值,以描述远程 RSAKeyValue
结构。
方法详细信息 |
---|
1 2 |
|
KeyValue
的公钥。
KeyValue
的公钥
KeyException
- 如果无法将此 KeyValue
转换为 PublicKey
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
上一个类 下一个类 | 框架 无框架 | |||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
版权所有 2004 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。