XML Security, 1.6

com.ibm.xml.crypto.dsig.dom
Class PGPDataImpl

java.lang.Object
  extended by com.ibm.xml.crypto.dsig.dom.XMLStructureImpl
      extended by com.ibm.xml.crypto.dsig.dom.PGPDataImpl
All Implemented Interfaces:
PGPData, XMLStructure

 class PGPDataImpl
extends XMLStructureImpl
implements PGPData


Field Summary
(package private)  java.util.List content
           
(package private)  byte[] keyId
           
(package private)  byte[] keyPacket
           
 
Fields inherited from class com.ibm.xml.crypto.dsig.dom.XMLStructureImpl
afactory
 
Fields inherited from interface javax.xml.crypto.dsig.keyinfo.PGPData
TYPE
 
Constructor Summary
PGPDataImpl(AlgorithmFactory f, byte[] keyId, byte[] keyPacket, java.util.List content)
           
 
Method Summary
 java.util.List getExternalElements()
          Returns an unmodifiable list of XMLStructures 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.
 
Methods inherited from class com.ibm.xml.crypto.dsig.dom.XMLStructureImpl
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
 

Field Detail

content

java.util.List content

keyId

byte[] keyId

keyPacket

byte[] keyPacket
Constructor Detail

PGPDataImpl

PGPDataImpl(AlgorithmFactory f,
            byte[] keyId,
            byte[] keyPacket,
            java.util.List content)
Method Detail

getKeyId

public byte[] getKeyId()
Description copied from interface: PGPData
Returns the PGP public key identifier of this PGPData as defined in RFC 2440, section 11.2.

Specified by:
getKeyId in interface PGPData
Returns:
the PGP public key identifier (may be null if not specified). Each invocation of this method returns a new clone to protect against subsequent modification.

getKeyPacket

public byte[] getKeyPacket()
Description copied from interface: PGPData
Returns the PGP key material packet of this PGPData as defined in RFC 2440, section 5.5.

Specified by:
getKeyPacket in interface PGPData
Returns:
the PGP key material packet (may be null if not specified). Each invocation of this method returns a new clone to protect against subsequent modification.

getExternalElements

public java.util.List getExternalElements()
Description copied from interface: PGPData
Returns an unmodifiable list of XMLStructures representing elements from an external namespace.

Specified by:
getExternalElements in interface PGPData
Returns:
an unmodifiable list of XMLStructures (may be empty, but never null)

XML Security, 1.6

Portions Copyright 2003, 2012 IBM Corporation.
Portions Copyright 2003, 2012 Oracle and/or its affiliates.