public class PGPData extends BaseElement implements KeyInfoElement
Type="http://www.w3.org/2000/09/xmldsig#PGPData"
(this can be used within a RetrievalMethod or
Reference element to identify the referent's type)The PGPData element within KeyInfo is used to
convey information related to PGP public key pairs and signatures on such
keys. The PGPKeyID's value is a base64Binary sequence
containing a standard PGP public key identifier as defined in
[PGP, section 11.2]. The
PGPKeyPacket contains a base64-encoded Key Material Packet as
defined in [PGP, section
5.5]. These children element types can be complemented/extended by siblings
from an * external namespace within PGPData, or
PGPData can be replaced all together with an alternative PGP XML
structure as a child of KeyInfo. PGPData must
contain one PGPKeyID and/or one PGPKeyPacket and 0
or more elements from an external namespace.
The following schema fragment specifies the expected content contained within this class.
<complexType name="PGPDataType">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<choice>
<sequence>
<element name="PGPKeyID" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/>
<element name="PGPKeyPacket" type="{http://www.w3.org/2001/XMLSchema}base64Binary" minOccurs="0"/>
<any processContents='lax' namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
</sequence>
<sequence>
<element name="PGPKeyPacket" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/>
<any processContents='lax' namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
</sequence>
</choice>
</restriction>
</complexContent>
</complexType>
mContext, mElement, mId| Constructor and Description |
|---|
PGPData(org.w3c.dom.Element aElement,
Context aContext)
Construct PGPData from existing
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getLocalName() |
addBigIntegerElement, addLineBreak, addLineBreak, checkNamespace, createElement, generateAndSetId, getAttribute, getBigIntegerFromElement, getChildText, getContext, getDocument, getElement, getId, getNamespace, insertBase64EncodedElement, insertElement, insertTextElement, selectChildElement, selectChildren, setIdpublic PGPData(org.w3c.dom.Element aElement,
Context aContext)
throws XMLSignatureException
aElement - xml elementaContext - according to contextXMLSignatureException - when structure is invalid or can not be
resolved appropriatelypublic java.lang.String getLocalName()
getLocalName in class BaseElementCopyright © 2025. All rights reserved.