Creates a
DOMPGPData
containing the specified key id and
optional key packet and list of external elements.
Parameters:
-
keyId - a PGP public key id as defined in section 11.2 of
RFC 2440. The
array is cloned to prevent subsequent modification.
-
keyPacket - a PGP Key Material Packet as defined in section 5.5 of
RFC 2440 (may
be
null
). The array is cloned to prevent subsequent
modification.
-
other - a list of {@link XMLStructure}s representing elements from
an external namespace. The list is defensively copied to prevent
subsequent modification. May be
null
or empty.
Throws:
-
NullPointerException - if
keyId
is
null
-
IllegalArgumentException - if the key id or packet is not in the
correct format
-
ClassCastException - if
other
contains any
entries that are not of type {@link XMLStructure}