public interface PGPData extends XMLStructure
PGPData
元在
W3C Recommendation for XML-Signature Syntax and Processing定义。一个
PGPData
对象是用来传递信息的PGP公钥对签名密钥相关。XML架构定义的定义是:
<元名称=“pgpdata”type=“ds:pgpdatatype” />< complexType名称=“pgpdatatype”> <选择> <序> <元名称=“pgpkeyid”type=“base64binary” /> <元名称=“pgpkeypacket”type=“base64binary”minoccurs=“0” /> <命名空间=“# #其他“processcontents="“松懈”minoccurs" =“0”maxoccurs="“无界”/"> < /序列> <序> <元名称=“pgpkeypacket”type=“base64binary” /> <命名空间=“# #其他“processcontents="“松懈”minoccurs" =“0”maxoccurs="“无界”/"> < /序列>< /选择>< /名称> 命名空间=“#> 序> 命名空间=“#> 序> 选择>一
PGPData
实例可以通过调用一个类的
KeyInfoFactory
newPGPData
方法创建的,并通过它
byte
数组表示的PGP公钥标识和/或PGP密钥材料包的内容,和一个可选的元素列表从外部命名空间。
Modifier and Type | Field and Description |
---|---|
static String |
TYPE
URI标识pgpdata消息类型:HTTP:/ /两。org / 2000 / 09 / xmldsig # pgpdata。
|
Modifier and Type | Method and Description |
---|---|
List |
getExternalElements()
返回
XMLStructure s代表从外部命名空间的元素
unmodifiable list 。
|
byte[] |
getKeyId()
返回的PGP公钥标识这
PGPData 定义在
RFC 2440,11.2节。
|
byte[] |
getKeyPacket()
定义在
RFC 2440返回PGP密钥材料包这
PGPData ,5.5节。
|
isFeatureSupported
static final String TYPE
RetrievalMethod
班
type
参数来描述远程
PGPData
结构的价值。
byte[] getKeyId()
PGPData
定义在
RFC 2440,11.2节。
null
如果不指定)。此方法的每次调用返回一个新的克隆,以防止后续的修改。
byte[] getKeyPacket()
PGPData
,5.5节。
null
如果不指定)。此方法的每次调用返回一个新的克隆,以防止后续的修改。
List getExternalElements()
XMLStructure
s代表从外部命名空间的元素
unmodifiable list
。
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.