XML Security, 1.6

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

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

 class KeyInfoImpl
extends XMLStructureImpl
implements KeyInfo


Field Summary
(package private)  java.util.List content
           
 
Fields inherited from class com.ibm.xml.crypto.dsig.dom.XMLStructureImpl
afactory
 
Constructor Summary
KeyInfoImpl(AlgorithmFactory f, java.util.List content, java.lang.String id)
           
 
Method Summary
 java.util.List getContent()
          Returns an unmodifiable list containing the key information.
 java.lang.String getId()
          Return the optional Id attribute of this KeyInfo, which may be useful for referencing this KeyInfo from other XML structures.
 void marshal(XMLStructure parent, XMLCryptoContext context)
          Marshals the key info to XML.
(package private)  void setSignatureNode(org.w3c.dom.Node n)
          Called by XMLSignatureImpl for sign()/validate().
 
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
Constructor Detail

KeyInfoImpl

KeyInfoImpl(AlgorithmFactory f,
            java.util.List content,
            java.lang.String id)
Method Detail

getId

public java.lang.String getId()
Description copied from interface: KeyInfo
Return the optional Id attribute of this KeyInfo, which may be useful for referencing this KeyInfo from other XML structures.

Specified by:
getId in interface KeyInfo
Returns:
the Id attribute of this KeyInfo (may be null if not specified)

getContent

public java.util.List getContent()
Description copied from interface: KeyInfo
Returns an unmodifiable list containing the key information. Each entry of the list is an XMLStructure.

If there is a public subclass representing the type of XMLStructure, it is returned as an instance of that class (ex: an X509Data element would be returned as an instance of X509Data).

Specified by:
getContent in interface KeyInfo
Returns:
an unmodifiable list of one or more XMLStructures in this KeyInfo. Never returns null or an empty list.

marshal

public void marshal(XMLStructure parent,
                    XMLCryptoContext context)
             throws MarshalException
Description copied from interface: KeyInfo
Marshals the key info to XML.

Specified by:
marshal in interface KeyInfo
Parameters:
parent - a mechanism-specific structure containing the parent node that the marshalled key info will be appended to
context - the XMLCryptoContext containing additional context (may be null if not applicable)
Throws:
MarshalException - if the key info cannot be marshalled

setSignatureNode

void setSignatureNode(org.w3c.dom.Node n)
Called by XMLSignatureImpl for sign()/validate().


XML Security, 1.6

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