com.ibm.xml.enc.dom
Class DOMEncryptionProperties
java.lang.Object
com.ibm.xml.enc.dom.DOMStructure
com.ibm.xml.enc.dom.DOMEncryptionProperties
- All Implemented Interfaces:
- EncryptionProperties, XMLStructure
public final class DOMEncryptionProperties
- extends DOMStructure
- implements EncryptionProperties
DOM-based implementation of EncryptionProperties.
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DOMEncryptionProperties
public DOMEncryptionProperties(java.util.List properties,
java.lang.String id)
- Creates a
DOMEncryptionProperties
containing the specified
list of EncryptionProperty
s and optional id.
- Parameters:
properties
- a list of one or more EncryptionProperty
s. 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
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
EncryptionProperty
s.
- Specified by:
getProperties
in interface EncryptionProperties
- Returns:
- an unmodifiable list of
EncryptionProperty
s
(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
Portions Copyright 2003, 2012 IBM Corporation.
Portions Copyright 2003, 2012 Oracle and/or its affiliates.