public interface PGPData extends XMLStructure
PGPData元素的表示 。
PGPData对象用于传递与这些密钥上的PGP公开密钥对和签名相关的信息。
XML模式定义定义为:
<element name="PGPData" type="ds:PGPDataType"/>
<complexType name="PGPDataType">
<choice>
<sequence>
<element name="PGPKeyID" type="base64Binary"/>
<element name="PGPKeyPacket" type="base64Binary" minOccurs="0"/>
<any namespace="##other" processContents="lax" minOccurs="0"
maxOccurs="unbounded"/>
</sequence>
<sequence>
<element name="PGPKeyPacket" type="base64Binary"/>
<any namespace="##other" processContents="lax" minOccurs="0"
maxOccurs="unbounded"/>
</sequence>
</choice>
</complexType>
可以通过调用KeyInfoFactory类的newPGPData方法之一创建PGPData实例,并传递byte PGP公钥标识符和/或PGP密钥材料分组的内容的byte数组,以及外部命名空间中可选的元素列表。
| Modifier and Type | Field and Description |
|---|---|
static String |
TYPE
标识PGPData KeyInfo类型的URI:http://www.w3.org/2000/09/xmldsig#PGPData。
|
| Modifier and Type | Method and Description |
|---|---|
List |
getExternalElements()
返回一个 unmodifiable list的XMLStructure s表示来自外部命名空间的元素。
|
byte[] |
getKeyId()
返回此的PGP公钥标识符
PGPData中定义
RFC 2440 ,11.2节。
|
byte[] |
getKeyPacket()
返回此的PGP密钥材料包
PGPData中定义
RFC 2440 ,第5.5节。
|
isFeatureSupportedstatic final String TYPE
RetrievalMethod类的type参数的值来描述远程PGPData结构。
byte[] getKeyId()
PGPData中定义
RFC 2440 ,11.2节。
null如果未指定)。
此方法的每次调用都将返回一个新的克隆以防止后续修改。
byte[] getKeyPacket()
PGPData中定义
RFC 2440 ,第5.5节。
null如果未指定)。
此方法的每次调用都将返回一个新的克隆以防止后续修改。
List getExternalElements()
XMLStructure s,表示来自外部命名空间的元素。
XMLStructure S(可能是空的,但从来没有
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.