|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jcp.xml.dsig.internal.dom.DOMStructure
org.jcp.xml.dsig.internal.dom.DOMPGPData
public final class DOMPGPData
Disabled: no SafeJ information.
DOM-based implementation of PGPData.
Field Summary |
---|
Fields inherited from interface javax.xml.crypto.dsig.keyinfo.PGPData |
---|
TYPE |
Constructor Summary | |
---|---|
DOMPGPData(byte[] keyId,
byte[] keyPacket,
List other)
Creates a DOMPGPData containing the specified key id and
optional key packet and list of external elements. |
|
DOMPGPData(byte[] keyPacket,
List other)
Creates a DOMPGPData containing the specified key packet. |
|
DOMPGPData(org.w3c.dom.Element pdElem)
Creates a DOMPGPData from an element. |
Method Summary | |
---|---|
List |
getExternalElements()
Returns an unmodifiable list
of XMLStructure s representing elements from an external
namespace. |
byte[] |
getKeyId()
Returns the PGP public key identifier of this PGPData as
defined in RFC 2440,
section 11.2. |
byte[] |
getKeyPacket()
Returns the PGP key material packet of this PGPData as
defined in RFC 2440,
section 5.5. |
void |
marshal(org.w3c.dom.Node parent,
String dsPrefix,
DOMCryptoContext context)
|
Methods inherited from class org.jcp.xml.dsig.internal.dom.DOMStructure |
---|
isFeatureSupported |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.xml.crypto.XMLStructure |
---|
isFeatureSupported |
Constructor Detail |
---|
public DOMPGPData(byte[] keyPacket, List 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 XMLStructure
s representing elements from
an external namespace. The list is defensively copied to prevent
subsequent modification. May be null
or empty.
NullPointerException
- if keyPacket
is
null
IllegalArgumentException
- if the key packet is not in the
correct format
ClassCastException
- if other
contains any
entries that are not of type XMLStructure
public DOMPGPData(byte[] keyId, byte[] keyPacket, List 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 XMLStructure
s representing elements from
an external namespace. The list is defensively copied to prevent
subsequent modification. May be null
or empty.
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 XMLStructure
public DOMPGPData(org.w3c.dom.Element pdElem) throws MarshalException
DOMPGPData
from an element.
pdElem
- a PGPData element
MarshalException
Method Detail |
---|
public byte[] getKeyId()
PGPData
PGPData
as
defined in RFC 2440,
section 11.2.
getKeyId
in interface PGPData
null
if
not specified). Each invocation of this method returns a new clone
to protect against subsequent modification.public byte[] getKeyPacket()
PGPData
PGPData
as
defined in RFC 2440,
section 5.5.
getKeyPacket
in interface PGPData
null
if not
specified). Each invocation of this method returns a new clone to
protect against subsequent modification.public List getExternalElements()
PGPData
unmodifiable list
of XMLStructure
s representing elements from an external
namespace.
getExternalElements
in interface PGPData
XMLStructure
s (may be
empty, but never null
)public void marshal(org.w3c.dom.Node parent, String dsPrefix, DOMCryptoContext context) throws MarshalException
marshal
in class DOMStructure
MarshalException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |