XML Security, 1.6

com.ibm.xml.enc.dom
Class DOMEncryptionProperties

java.lang.Object
  extended by com.ibm.xml.enc.dom.DOMStructure
      extended by com.ibm.xml.enc.dom.DOMEncryptionProperties
All Implemented Interfaces:
EncryptionProperties, XMLStructure

public final class DOMEncryptionProperties
extends DOMStructure
implements EncryptionProperties

DOM-based implementation of EncryptionProperties.


Field Summary
 
Fields inherited from interface javax.xml.crypto.enc.EncryptionProperties
TYPE
 
Constructor Summary
DOMEncryptionProperties(org.w3c.dom.Element manElem)
          Creates a DOMEncryptionProperties from an element.
DOMEncryptionProperties(java.util.List properties, java.lang.String id)
          Creates a DOMEncryptionProperties containing the specified list of EncryptionPropertys and optional id.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getId()
          Returns the optional ID.
 java.util.List getProperties()
          Returns an unmodifiable list of EncryptionPropertys.
 void marshal(org.w3c.dom.Node parent, java.lang.String encPrefix, DOMCryptoContext context)
           
 
Methods inherited from class com.ibm.xml.enc.dom.DOMStructure
isFeatureSupported
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.xml.crypto.XMLStructure
isFeatureSupported
 

Constructor Detail

DOMEncryptionProperties

public DOMEncryptionProperties(java.util.List properties,
                               java.lang.String id)
Creates a DOMEncryptionProperties containing the specified list of EncryptionPropertys and optional id.

Parameters:
properties - a list of one or more EncryptionPropertys. The list is defensively copied to protect against subsequent modification.
id - the id (may be null
Throws:
java.lang.NullPointerException - if properties is null
java.lang.IllegalArgumentException - if properties is empty
java.lang.ClassCastException - if properties contains any entries that are not of type EncryptionProperty

DOMEncryptionProperties

public DOMEncryptionProperties(org.w3c.dom.Element manElem)
                        throws MarshalException
Creates a DOMEncryptionProperties from an element.

Parameters:
manElem - a EncryptionProperties element
Throws:
MarshalException
Method Detail

getId

public java.lang.String getId()
Description copied from interface: EncryptionProperties
Returns the optional ID.

Specified by:
getId in interface EncryptionProperties
Returns:
the ID, or null if not specified.

getProperties

public java.util.List getProperties()
Description copied from interface: EncryptionProperties
Returns an unmodifiable list of EncryptionPropertys.

Specified by:
getProperties in interface EncryptionProperties
Returns:
an unmodifiable list of EncryptionPropertys (never null or empty)

marshal

public void marshal(org.w3c.dom.Node parent,
                    java.lang.String encPrefix,
                    DOMCryptoContext context)
             throws MarshalException
Specified by:
marshal in class DOMStructure
Throws:
MarshalException

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

XML Security, 1.6

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