org.jcp.xml.dsig.internal.dom
Class DOMSignatureProperties
java.lang.Object
org.jcp.xml.dsig.internal.dom.DOMStructure
org.jcp.xml.dsig.internal.dom.DOMSignatureProperties
- All Implemented Interfaces:
- SignatureProperties, XMLStructure
public final class DOMSignatureProperties
- extends DOMStructure
- implements SignatureProperties
DOM-based implementation of SignatureProperties.
- Author:
- Sean Mullan
Constructor Summary |
DOMSignatureProperties(org.w3c.dom.Element propsElem)
Creates a DOMSignatureProperties from an element. |
DOMSignatureProperties(java.util.List properties,
java.lang.String id)
Creates a DOMSignatureProperties from the specified
parameters. |
Method Summary |
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getId()
Returns the Id of this SignatureProperties . |
java.util.List |
getProperties()
Returns an unmodifiable
list of one or more SignatureProperty s that are contained in
this SignatureProperties . |
int |
hashCode()
|
void |
marshal(org.w3c.dom.Node parent,
java.lang.String dsPrefix,
DOMCryptoContext context)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
DOMSignatureProperties
public DOMSignatureProperties(java.util.List properties,
java.lang.String id)
- Creates a
DOMSignatureProperties
from the specified
parameters.
- Parameters:
properties
- a list of one or more SignatureProperty
s. The
list is defensively copied to protect against subsequent modification.id
- the Id (may be null
)
- Throws:
java.lang.ClassCastException
- if properties
contains any
entries that are not of type SignatureProperty
java.lang.IllegalArgumentException
- if properties
is empty
java.lang.NullPointerException
- if properties
DOMSignatureProperties
public DOMSignatureProperties(org.w3c.dom.Element propsElem)
throws MarshalException
- Creates a
DOMSignatureProperties
from an element.
- Parameters:
propsElem
- a SignatureProperties element
- Throws:
MarshalException
- if a marshalling error occurs
getProperties
public java.util.List getProperties()
- Description copied from interface:
SignatureProperties
- Returns an
unmodifiable
list
of one or more SignatureProperty
s that are contained in
this SignatureProperties
.
- Specified by:
getProperties
in interface SignatureProperties
- Returns:
- an unmodifiable list of one or more
SignatureProperty
s
getId
public java.lang.String getId()
- Description copied from interface:
SignatureProperties
- Returns the Id of this
SignatureProperties
.
- Specified by:
getId
in interface SignatureProperties
- Returns:
- the Id of this
SignatureProperties
(or
null
if not specified)
marshal
public void marshal(org.w3c.dom.Node parent,
java.lang.String dsPrefix,
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
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
Copyright © 2000-2011 The Apache Software Foundation. All Rights Reserved.