public final class DOMPGPData extends DOMStructure implements PGPData
| Constructor and Description |
|---|
DOMPGPData(byte[] keyId,
byte[] keyPacket,
List<? extends XMLStructure> other)
Creates a
DOMPGPData containing the specified key id and
optional key packet and list of external elements. |
DOMPGPData(byte[] keyPacket,
List<? extends XMLStructure> other)
Creates a
DOMPGPData containing the specified key packet. |
DOMPGPData(Element pdElem)
Creates a
DOMPGPData from an element. |
| Modifier and Type | Method and Description |
|---|---|
List<XMLStructure> |
getExternalElements() |
byte[] |
getKeyId() |
byte[] |
getKeyPacket() |
void |
marshal(Node parent,
String dsPrefix,
DOMCryptoContext context) |
equalsContent, isFeatureSupportedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisFeatureSupportedpublic DOMPGPData(byte[] keyPacket,
List<? extends XMLStructure> other)
DOMPGPData containing the specified key packet.
and optional list of external elements.keyPacket - a PGP Key Material Packet as defined in section 5.5 of
RFC 2440. The
array is cloned to prevent subsequent modification.other - a list of XMLStructures representing elements from
an external namespace. The list is defensively copied to prevent
subsequent modification. May be null or empty.NullPointerException - if keyPacket is
nullIllegalArgumentException - if the key packet is not in the
correct formatClassCastException - if other contains any
entries that are not of type XMLStructurepublic DOMPGPData(byte[] keyId,
byte[] keyPacket,
List<? extends XMLStructure> other)
DOMPGPData containing the specified key id and
optional key packet and list of external elements.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 XMLStructures representing elements from
an external namespace. The list is defensively copied to prevent
subsequent modification. May be null or empty.NullPointerException - if keyId is nullIllegalArgumentException - if the key id or packet is not in the
correct formatClassCastException - if other contains any
entries that are not of type XMLStructurepublic DOMPGPData(Element pdElem) throws MarshalException
DOMPGPData from an element.pdElem - a PGPData elementMarshalExceptionpublic byte[] getKeyPacket()
getKeyPacket in interface PGPDatapublic List<XMLStructure> getExternalElements()
getExternalElements in interface PGPDatapublic void marshal(Node parent, String dsPrefix, DOMCryptoContext context) throws MarshalException
marshal in class DOMStructureMarshalExceptionCopyright © 2000–2020 The Apache Software Foundation. All rights reserved.